类 StorageMinecartEntity
- java.lang.Object
-
- net.minecraft.entity.Entity
-
- net.minecraft.entity.vehicle.AbstractMinecartEntity
-
- net.minecraft.entity.vehicle.StorageMinecartEntity
-
- 所有已实现的接口:
Inventory,NamedScreenHandlerFactory,ScreenHandlerFactory,CommandOutput,Clearable,Nameable,EntityLike
- 直接已知子类:
ChestMinecartEntity,HopperMinecartEntity
public abstract class StorageMinecartEntity extends AbstractMinecartEntity implements Inventory, NamedScreenHandlerFactory
- Mappings:
Namespace Name official bkvintermediary net/minecraft/class_1693named net/minecraft/entity/vehicle/StorageMinecartEntity
-
-
嵌套类概要
-
从类继承的嵌套类/接口 net.minecraft.entity.vehicle.AbstractMinecartEntity
AbstractMinecartEntity.Type
-
从类继承的嵌套类/接口 net.minecraft.entity.Entity
Entity.MoveEffect, Entity.PositionUpdater, Entity.RemovalReason
-
-
字段概要
字段 修饰符和类型 字段 说明 private DefaultedList<ItemStack>inventoryprivate longlootSeedprivate @Nullable IdentifierlootTableId-
从类继承的字段 net.minecraft.entity.vehicle.AbstractMinecartEntity
field_30694
-
从类继承的字段 net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_29973, field_29974, field_29979, field_29980, field_29981, field_29987, field_29988, field_29989, field_29990, field_29991, field_29992, field_29993, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ID_KEY, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, PASSENGERS_KEY, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, UUID_KEY, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, wasOnFire, world, yaw
-
从接口继承的字段 net.minecraft.server.command.CommandOutput
DUMMY
-
从接口继承的字段 net.minecraft.inventory.Inventory
MAX_COUNT_PER_STACK
-
-
构造器概要
构造器 限定符 构造器 说明 protectedStorageMinecartEntity(EntityType<?> type, double x, double y, double z, World world)protectedStorageMinecartEntity(EntityType<?> type, World world)
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected voidapplySlowdown()booleancanPlayerUse(PlayerEntity player)voidclear()@Nullable ScreenHandlercreateMenu(int syncId, PlayerInventory inv, PlayerEntity player)voiddropItems(DamageSource damageSource)voidgenerateLoot(@Nullable PlayerEntity player)CommandItemSlotgetCommandItemSlot(int mappedIndex)Obtains an item slot for command modification purpose.protected abstract ScreenHandlergetScreenHandler(int syncId, PlayerInventory playerInventory)ItemStackgetStack(int slot)Fetches the stack currently stored at the given slot.ActionResultinteract(PlayerEntity player, Hand hand)Called when a player interacts with this entity.booleanisEmpty()voidmarkDirty()protected voidreadCustomDataFromNbt(CompoundTag nbt)voidremove(Entity.RemovalReason reason)ItemStackremoveStack(int slot)Removes the stack currently stored at the indicated slot.ItemStackremoveStack(int slot, int amount)Removes a specific number of items from the given slot.voidsetLootTable(Identifier id, long lootSeed)voidsetStack(int slot, ItemStack stack)protected voidwriteCustomDataToNbt(CompoundTag nbt)-
从类继承的方法 net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, collides, collidesWith, create, createSpawnPacket, damage, getBlockOffset, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultBlockOffset, getDefaultContainedBlock, getMaxOffRailSpeed, getMinecartType, getMountedHeightOffset, getMoveEffect, getMovementDirection, getPickBlockStack, getVelocityMultiplier, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, moveOffRail, moveOnRail, onActivatorRail, positionInPortal, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomBlockPresent, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, snapPositionToRail, snapPositionToRailWithOffset, tick, updatePassengerForDismount, updateTrackedPositionAndAngles
-
从类继承的方法 net.minecraft.entity.Entity
addAirTravelEffects, addFlapEffects, addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundingBox, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraBlockPos, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyePos, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getGameEventHandler, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLeashOffset, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPortalRect, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRemovalReason, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, getSwimHeight, getSwimSound, getTargetingMargin, getTeamColorValue, getTeleportTarget, getTrackedPosition, getType, getUuid, getUuidAsString, getVehicle, getVelocity, getVelocityAffectingPos, getWidth, getX, getY, getYaw, getZ, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasNetherPortalCooldown, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, hasPassengerType, hasPermissionLevel, hasPlayerRider, hasVehicle, hasWings, interactAt, isAlive, isAttackable, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isFreezing, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isPlayer, isPushedByFluids, isRegionUnloaded, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_30951, method_36209, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, readNbt, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, requestTeleportAndDismount, resetNetherPortalCooldown, resetPosition, saveNbt, saveSelfNbt, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setListener, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setPosition, setPosition, setRemoved, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSave, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersAndSelf, streamSelfAndPassengers, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toNbtList, toNbtList, toString, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide, writeNbt
-
从接口继承的方法 net.minecraft.inventory.Inventory
containsAny, count, getMaxCountPerStack, isValid, onClose, onOpen, size
-
从接口继承的方法 net.minecraft.screen.NamedScreenHandlerFactory
getDisplayName
-
-
-
-
字段详细资料
-
inventory
private DefaultedList<ItemStack> inventory
- Mappings:
Namespace Name Mixin selector official cLbkv;c:Lgn;intermediary field_7735Lnet/minecraft/class_1693;field_7735:Lnet/minecraft/class_2371;named inventoryLnet/minecraft/entity/vehicle/StorageMinecartEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
lootTableId
@Nullable private @Nullable Identifier lootTableId
- Mappings:
Namespace Name Mixin selector official dLbkv;d:Lwp;intermediary field_7734Lnet/minecraft/class_1693;field_7734:Lnet/minecraft/class_2960;named lootTableIdLnet/minecraft/entity/vehicle/StorageMinecartEntity;lootTableId:Lnet/minecraft/util/Identifier;
-
lootSeed
private long lootSeed
- Mappings:
Namespace Name Mixin selector official eLbkv;e:Jintermediary field_7732Lnet/minecraft/class_1693;field_7732:Jnamed lootSeedLnet/minecraft/entity/vehicle/StorageMinecartEntity;lootSeed:J
-
-
构造器详细资料
-
StorageMinecartEntity
protected StorageMinecartEntity(EntityType<?> type, World world)
- Mappings:
Namespace Name Mixin selector official <init>Lasl;<init>(Lasp;Lbvr;)Vintermediary <init>Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
StorageMinecartEntity
protected StorageMinecartEntity(EntityType<?> type, double x, double y, double z, World world)
- Mappings:
Namespace Name Mixin selector official <init>Lbkv;<init>(Lasp;DDDLbvr;)Vintermediary <init>Lnet/minecraft/class_1693;<init>(Lnet/minecraft/class_1299;DDDLnet/minecraft/class_1937;)Vnamed <init>Lnet/minecraft/entity/vehicle/StorageMinecartEntity;<init>(Lnet/minecraft/entity/EntityType;DDDLnet/minecraft/world/World;)V
-
-
方法详细资料
-
dropItems
public void dropItems(DamageSource damageSource)
- 覆盖:
dropItems在类中AbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLbku;a(Larv;)Vintermediary method_7516Lnet/minecraft/class_1688;method_7516(Lnet/minecraft/class_1282;)Vnamed dropItemsLnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
isEmpty
public boolean isEmpty()
-
getStack
public ItemStack getStack(int slot)
Fetches the stack currently stored at the given slot. If the slot is empty, or is outside the bounds of this inventory, returns seeItemStack.EMPTY.
-
removeStack
public ItemStack removeStack(int slot, int amount)
Removes a specific number of items from the given slot.- 指定者:
removeStack在接口中Inventory- 返回:
- the removed items as a stack
- Mappings:
Namespace Name Mixin selector official aLaqz;a(II)Lbpr;intermediary method_5434Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;named removeStackLnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
-
removeStack
public ItemStack removeStack(int slot)
Removes the stack currently stored at the indicated slot.- 指定者:
removeStack在接口中Inventory- 返回:
- the stack previously stored at the indicated slot.
- Mappings:
Namespace Name Mixin selector official bLaqz;b(I)Lbpr;intermediary method_5441Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;named removeStackLnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
-
setStack
public void setStack(int slot, ItemStack stack)
-
getCommandItemSlot
public CommandItemSlot getCommandItemSlot(int mappedIndex)
Obtains an item slot for command modification purpose. Used by commands like/lootor/replaceitem.- 覆盖:
getCommandItemSlot在类中Entity- 参数:
mappedIndex- the mapped index as given by the item slot argument- 另请参阅:
ItemSlotArgumentType- Mappings:
Namespace Name Mixin selector official kLasl;k(I)Lato;intermediary method_32318Lnet/minecraft/class_1297;method_32318(I)Lnet/minecraft/class_5630;named getCommandItemSlotLnet/minecraft/entity/Entity;getCommandItemSlot(I)Lnet/minecraft/inventory/CommandItemSlot;
-
markDirty
public void markDirty()
-
canPlayerUse
public boolean canPlayerUse(PlayerEntity player)
- 指定者:
canPlayerUse在接口中Inventory- Mappings:
Namespace Name Mixin selector official aLaqz;a(Lbjf;)Zintermediary method_5443Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Znamed canPlayerUseLnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
remove
public void remove(Entity.RemovalReason reason)
-
writeCustomDataToNbt
protected void writeCustomDataToNbt(CompoundTag nbt)
- 覆盖:
writeCustomDataToNbt在类中AbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official bLasl;b(Lmv;)Vintermediary method_5652Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromNbt
protected void readCustomDataFromNbt(CompoundTag nbt)
- 覆盖:
readCustomDataFromNbt在类中AbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLasl;a(Lmv;)Vintermediary method_5749Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/CompoundTag;)V
-
interact
public ActionResult interact(PlayerEntity player, Hand hand)
Called when a player interacts with this entity.- 覆盖:
interact在类中Entity- 参数:
player- the playerhand- the hand the player used to interact with this entity- Mappings:
Namespace Name Mixin selector official aLasl;a(Lbjf;Larf;)Larg;intermediary method_5688Lnet/minecraft/class_1297;method_5688(Lnet/minecraft/class_1657;Lnet/minecraft/class_1268;)Lnet/minecraft/class_1269;named interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/util/ActionResult;
-
applySlowdown
protected void applySlowdown()
- 覆盖:
applySlowdown在类中AbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official iLbku;i()Vintermediary method_7525Lnet/minecraft/class_1688;method_7525()Vnamed applySlowdownLnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
-
generateLoot
public void generateLoot(@Nullable @Nullable PlayerEntity player)
- Mappings:
Namespace Name Mixin selector official dLbkv;d(Lbjf;)Vintermediary method_7563Lnet/minecraft/class_1693;method_7563(Lnet/minecraft/class_1657;)Vnamed generateLootLnet/minecraft/entity/vehicle/StorageMinecartEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
-
clear
public void clear()
-
setLootTable
public void setLootTable(Identifier id, long lootSeed)
- Mappings:
Namespace Name Mixin selector official aLbkv;a(Lwp;J)Vintermediary method_7562Lnet/minecraft/class_1693;method_7562(Lnet/minecraft/class_2960;J)Vnamed setLootTableLnet/minecraft/entity/vehicle/StorageMinecartEntity;setLootTable(Lnet/minecraft/util/Identifier;J)V
-
createMenu
@Nullable public @Nullable ScreenHandler createMenu(int syncId, PlayerInventory inv, PlayerEntity player)
- 指定者:
createMenu在接口中ScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official createMenuLbmo;createMenu(ILbje;Lbjf;)Lbll;intermediary createMenuLnet/minecraft/class_1270;createMenu(ILnet/minecraft/class_1661;Lnet/minecraft/class_1657;)Lnet/minecraft/class_1703;named createMenuLnet/minecraft/screen/ScreenHandlerFactory;createMenu(ILnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-
getScreenHandler
protected abstract ScreenHandler getScreenHandler(int syncId, PlayerInventory playerInventory)
- Mappings:
Namespace Name Mixin selector official aLbkv;a(ILbje;)Lbll;intermediary method_17357Lnet/minecraft/class_1693;method_17357(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;named getScreenHandlerLnet/minecraft/entity/vehicle/StorageMinecartEntity;getScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-
-