Package net.minecraft.entity.vehicle
Class StorageMinecartEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.AbstractMinecartEntity
net.minecraft.entity.vehicle.StorageMinecartEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,class_2964,CommandSource,Inventory,NamedScreenHandlerFactory,Nameable
- Direct Known Subclasses:
ChestMinecartEntity,HopperMinecartEntity
public abstract class StorageMinecartEntity
extends AbstractMinecartEntity
implements LockableScreenHandlerFactory, class_2964
- Mappings:
Namespace Name official acbintermediary net/minecraft/class_1574named net/minecraft/entity/vehicle/StorageMinecartEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
AbstractMinecartEntity.Type -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate DefaultedList<ItemStack>private longprivate IdentifierFields inherited from class net.minecraft.entity.Entity
changingDimension, chunkX, chunkY, chunkZ, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, netherPortalTime, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, tracedX, tracedY, tracedZ, updateNeeded, uuidString, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
ConstructorsConstructorDescriptionStorageMinecartEntity(World world) StorageMinecartEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleancanPlayerUseInv(PlayerEntity player) changeDimension(int newDimension) voidclear()voiddropItems(DamageSource damageSource) voidgenerateLoot(PlayerEntity player) intgetInvStack(int slot) getLock()intintgetProperty(int key) booleanhasLock()booleaninteract(PlayerEntity player, Hand hand) booleanisEmpty()booleanisValidInvStack(int slot, ItemStack stack) voidvoidmethod_12991(boolean bool) static voidmethod_13640(class_2934 class_2934, Class<?> class2) voidonInvClose(PlayerEntity player) voidonInvOpen(PlayerEntity player) protected voidvoidremove()removeInvStack(int slot) voidsetInvStack(int slot, ItemStack stack) voidsetLock(ScreenHandlerLock lock) voidsetLootTable(Identifier id, long lootSeed) voidsetProperty(int id, int value) takeInvStack(int slot, int amount) protected voidMethods inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, canClimb, collides, createMinecart, damage, getBlockOffset, getBox, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultBlockOffset, getDefaultContainedBlock, getHardCollisionBox, getMaxOffRailSpeed, getMinecartType, getMountedHeightOffset, getMovementDirection, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, method_13639, moveOffRail, moveOnRail, onActivatorRail, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomBlockPresent, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, snapPositionToRail, snapPositionToRailWithOffset, tick, updatePosition, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, afterSpawn, applyMirror, applyRotation, attemptSprintingParticles, baseTick, burn, canAddPassenger, canAvoidTraps, canExplosionDestroyBlock, canFly, canStartRiding, canUseCommand, canUsePortals, checkBlockCollision, copyPosition, dealDamage, destroy, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropItem, entityDataRequiresOperator, equals, equip, equipStack, extinguish, fall, fromNbt, getAir, getArmorItems, getBlastResistance, getBlockPos, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandStats, getCustomName, getDataTracker, getDefaultNetherPortalCooldown, getEntity, getEntityId, getEntityName, getEyeHeight, getFlag, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getItemsEquipped, getItemsHand, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getMinecraftServer, getParts, getPassengerList, getPassengersDeep, getPassengersDeep, getPistonBehavior, getPos, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotation, getRotationClient, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getSoundCategory, getTargetingMargin, getTranslatedName, getUuid, getVehicle, getWorld, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, increaseTransforms, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTeammate, isTeamPlayer, isTouchingLava, isTouchingWater, kill, method_10965, method_12984, method_12985, method_13003, method_13932, method_6344, move, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, onTrackedDataSet, playSound, playStepSound, populateCrashReport, pushOutOfBlocks, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setBoundingBox, setBounds, setCustomName, setCustomNameVisible, setEntityId, setFlag, setGlowing, setHeadYaw, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setStat, setUuid, setWorld, setYaw, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, startRiding, stopRiding, teleportRequested, tickFire, tickNetherPortalCooldown, tickRiding, toListNbt, toListNbt, toNbt, toString, updateKilledAdvancementCriterion, updatePassengerPosition, updatePositionAndAngles, updateSubmergedInWaterState, updateVelocity, updateWaterStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
getInvSizeMethods inherited from interface net.minecraft.text.Nameable
getTranslationKey, hasCustomName, method_6344Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
createScreenHandler, getId
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLacb;a:Ldd;intermediary field_15098Lnet/minecraft/class_1574;field_15098:Lnet/minecraft/class_3114;named inventoryLnet/minecraft/entity/vehicle/StorageMinecartEntity;inventory:Lnet/minecraft/util/collection/DefaultedList;
-
field_6145
private boolean field_6145- Mappings:
Namespace Name Mixin selector official bLacb;b:Zintermediary field_6145Lnet/minecraft/class_1574;field_6145:Znamed field_6145Lnet/minecraft/entity/vehicle/StorageMinecartEntity;field_6145:Z
-
lootTableId
- Mappings:
Namespace Name Mixin selector official cLacb;c:Lkq;intermediary field_12258Lnet/minecraft/class_1574;field_12258:Lnet/minecraft/class_1653;named lootTableIdLnet/minecraft/entity/vehicle/StorageMinecartEntity;lootTableId:Lnet/minecraft/util/Identifier;
-
lootSeed
private long lootSeed- Mappings:
Namespace Name Mixin selector official dLacb;d:Jintermediary field_12259Lnet/minecraft/class_1574;field_12259:Jnamed lootSeedLnet/minecraft/entity/vehicle/StorageMinecartEntity;lootSeed:J
-
-
Constructor Details
-
StorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lsn;<init>(Lajs;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
StorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Laby;<init>(Lajs;DDD)Vintermediary <init>Lnet/minecraft/class_965;<init>(Lnet/minecraft/class_1150;DDD)Vnamed <init>Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
dropItems
- Overrides:
dropItemsin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLaby;a(Lry;)Vintermediary method_5412Lnet/minecraft/class_965;method_5412(Lnet/minecraft/class_856;)Vnamed dropItemsLnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
isEmpty
public boolean isEmpty() -
getInvStack
- Specified by:
getInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLrc;a(I)Lafj;intermediary method_2381Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;named getInvStackLnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
-
takeInvStack
- Specified by:
takeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLrc;a(II)Lafj;intermediary method_2382Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;named takeInvStackLnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
-
removeInvStack
- Specified by:
removeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLrc;b(I)Lafj;intermediary method_2386Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;named removeInvStackLnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
-
setInvStack
- Specified by:
setInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLrc;a(ILafj;)Vintermediary method_2383Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)Vnamed setInvStackLnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
-
markDirty
public void markDirty() -
canPlayerUseInv
- Specified by:
canPlayerUseInvin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLrc;a(Laay;)Zintermediary method_2384Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Znamed canPlayerUseInvLnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onInvOpen
- Specified by:
onInvOpenin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLrc;b(Laay;)Vintermediary method_10894Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)Vnamed onInvOpenLnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onInvClose
- Specified by:
onInvClosein interfaceInventory- Mappings:
Namespace Name Mixin selector official cLrc;c(Laay;)Vintermediary method_10895Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)Vnamed onInvCloseLnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
isValidInvStack
- Specified by:
isValidInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLrc;b(ILafj;)Zintermediary method_5338Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Znamed isValidInvStackLnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
-
getInvMaxStackAmount
public int getInvMaxStackAmount()- Specified by:
getInvMaxStackAmountin interfaceInventory- Mappings:
Namespace Name Mixin selector official y_Lrc;y_()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
changeDimension
- Overrides:
changeDimensionin classEntity- Mappings:
Namespace Name Mixin selector official cLsn;c(I)Lsn;intermediary method_3197Lnet/minecraft/class_864;method_3197(I)Lnet/minecraft/class_864;named changeDimensionLnet/minecraft/entity/Entity;changeDimension(I)Lnet/minecraft/entity/Entity;
-
remove
public void remove() -
method_12991
public void method_12991(boolean bool) - Overrides:
method_12991in classEntity- Mappings:
Namespace Name Mixin selector official bLsn;b(Z)Vintermediary method_12991Lnet/minecraft/class_864;method_12991(Z)Vnamed method_12991Lnet/minecraft/entity/Entity;method_12991(Z)V
-
method_13640
- Mappings:
Namespace Name Mixin selector official bLacb;b(Lph;Ljava/lang/Class;)Vintermediary method_13640Lnet/minecraft/class_1574;method_13640(Lnet/minecraft/class_2934;Ljava/lang/Class;)Vnamed method_13640Lnet/minecraft/entity/vehicle/StorageMinecartEntity;method_13640(Lnet/minecraft/class_2934;Ljava/lang/Class;)V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official bLsn;b(Ldu;)Vintermediary method_2528Lnet/minecraft/class_864;method_2528(Lnet/minecraft/class_322;)Vnamed writeCustomDataToNbtLnet/minecraft/entity/Entity;writeCustomDataToNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
readCustomDataFromNbt
- Overrides:
readCustomDataFromNbtin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLsn;a(Ldu;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
interact
- Overrides:
interactin classEntity- Mappings:
Namespace Name Mixin selector official bLsn;b(Laay;Lri;)Zintermediary method_6100Lnet/minecraft/class_864;method_6100(Lnet/minecraft/class_988;Lnet/minecraft/class_2961;)Znamed interactLnet/minecraft/entity/Entity;interact(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/Hand;)Z
-
applySlowdown
protected void applySlowdown()- Overrides:
applySlowdownin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official rLaby;r()Vintermediary method_5415Lnet/minecraft/class_965;method_5415()Vnamed applySlowdownLnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
-
getProperty
public int getProperty(int key) - Specified by:
getPropertyin interfaceInventory- Mappings:
Namespace Name Mixin selector official c_Lrc;c_(I)Iintermediary method_10892Lnet/minecraft/class_849;method_10892(I)Inamed getPropertyLnet/minecraft/inventory/Inventory;getProperty(I)I
-
setProperty
public void setProperty(int id, int value) - Specified by:
setPropertyin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLrc;b(II)Vintermediary method_10893Lnet/minecraft/class_849;method_10893(II)Vnamed setPropertyLnet/minecraft/inventory/Inventory;setProperty(II)V
-
getProperties
public int getProperties()- Specified by:
getPropertiesin interfaceInventory- Mappings:
Namespace Name Mixin selector official hLrc;h()Iintermediary method_10896Lnet/minecraft/class_849;method_10896()Inamed getPropertiesLnet/minecraft/inventory/Inventory;getProperties()I
-
hasLock
public boolean hasLock()- Specified by:
hasLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official z_Lro;z_()Zintermediary method_10913Lnet/minecraft/class_2610;method_10913()Znamed hasLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
-
setLock
- Specified by:
setLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official aLro;a(Lrn;)Vintermediary method_10911Lnet/minecraft/class_2610;method_10911(Lnet/minecraft/class_2609;)Vnamed setLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
-
getLock
- Specified by:
getLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official jLro;j()Lrn;intermediary method_10912Lnet/minecraft/class_2610;method_10912()Lnet/minecraft/class_2609;named getLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;getLock()Lnet/minecraft/inventory/ScreenHandlerLock;
-
generateLoot
- Mappings:
Namespace Name Mixin selector official fLacb;f(Laay;)Vintermediary method_11348Lnet/minecraft/class_1574;method_11348(Lnet/minecraft/class_988;)Vnamed generateLootLnet/minecraft/entity/vehicle/StorageMinecartEntity;generateLoot(Lnet/minecraft/entity/player/PlayerEntity;)V
-
clear
public void clear() -
setLootTable
- Mappings:
Namespace Name Mixin selector official aLacb;a(Lkq;J)Vintermediary method_11347Lnet/minecraft/class_1574;method_11347(Lnet/minecraft/class_1653;J)Vnamed setLootTableLnet/minecraft/entity/vehicle/StorageMinecartEntity;setLootTable(Lnet/minecraft/util/Identifier;J)V
-
getLootTableId
- Specified by:
getLootTableIdin interfaceclass_2964- Mappings:
Namespace Name Mixin selector official bLrq;b()Lkq;intermediary method_12936Lnet/minecraft/class_2964;method_12936()Lnet/minecraft/class_1653;named getLootTableIdLnet/minecraft/class_2964;getLootTableId()Lnet/minecraft/util/Identifier;
-