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,class_3893,Inventory,NamedScreenHandlerFactory,Nameable
- Direct Known Subclasses:
ChestMinecartEntity,HopperMinecartEntity
public abstract class StorageMinecartEntity
extends AbstractMinecartEntity
implements LockableScreenHandlerFactory, class_2964
- Mappings:
Namespace Name official apiintermediary 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, distanceTraveled, fallDistance, field_16693, field_16694, field_16696, field_3223, firstUpdate, FLAGS, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inLava, isFireImmune, isGlowing, lastPortalBlockPos, lastPortalVec3d, LOGGER_, 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
ConstructorsModifierConstructorDescriptionprotectedStorageMinecartEntity(EntityType<?> entityType, double double2, double double3, double double4, World world) protectedStorageMinecartEntity(EntityType<?> entityType, World world) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbooleancanPlayerUseInv(PlayerEntity player) voidclear()voiddropItems(DamageSource damageSource) booleanvoidgenerateLoot(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) method_15562(DimensionType dimensionType) 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, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultBlockOffset, getDefaultContainedBlock, getHardCollisionBox, getMaxOffRailSpeed, getMinecartType, getMountedHeightOffset, getMovementDirection, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, 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, canFly, canStartRiding, canUsePortals, checkBlockCollision, copyPortalInfo, copyPosition, dealDamage, destroy, distanceTo, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromNbt, getAir, getArmorItems, getBoundingBox, getBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getDataTracker, getDefaultNetherPortalCooldown, getEntityId, getEntityName, getEyeHeight, getFlag, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getItemsEquipped, getItemsHand, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getLightmapCoordinates, getMaxNetherPortalTime, getParts, getPassengerList, getPassengersDeep, getPistonBehavior, getPrimaryPassenger, getRenderDistanceMultiplier, getRootVehicle, getRotation, getRotationClient, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getSoundCategory, getTargetingMargin, getUuid, getVehicle, handleAttack, handleFallDamage, handleStatus, hasCustomName, hashCode, hasMount, hasNoGravity, hasPassenger, hasPassengerDeep, hasPassengers, interactAt, isAlive, isAttackable, isConnectedThroughVehicle, isCustomNameVisible, isFireImmune, isGlowing, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isTeammate, isTeamPlayer, isTouchingLava, isTouchingWater, kill, method_10787, method_10931, method_10932, method_10933, method_10936, method_12265, method_12833, method_12984, method_12985, method_13003, method_15051, method_15055, method_15540, method_15541, method_15557, method_15558, method_15559, method_15560, method_15561, method_15563, method_15564, method_15566, method_15567, method_15569, method_15570, method_15571, method_15572, method_15573, method_15574, method_15575, method_15576, method_15577, method_15578, method_15580, method_15581, method_15582, method_15583, method_15584, method_15585, method_15586, method_15588, method_15589, method_15590, method_15591, method_15592, method_15593, method_15594, method_17412, method_17413, method_17414, method_2492, method_4086, method_5505, method_5506, method_6344, move, onBlockCollision, onKilledOther, onLightningStrike, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onSwimmingStart, onTrackedDataSet, playSound, populateCrashReport, pushOutOfBlocks, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removePassenger, removeScoreboardTag, ride, saveSelfToNbt, saveToNbt, scheduleVelocityUpdate, setAir, setBoundingBox, setBounds, setCustomNameVisible, setEntityId, setFlag, setGlowing, setHeadYaw, setInLava, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setUuid, setWorld, setYaw, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, startRiding, stopRiding, teleportRequested, tickFire, tickNetherPortalCooldown, tickRiding, toListNbt, toListNbt, toNbt, toString, updateKilledAchievement, updatePassengerPosition, updatePositionAndAngles, updateSubmergedInWaterState, updateWaterStateMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.inventory.Inventory
getHeight, getInvSize, method_11260Methods inherited from interface net.minecraft.text.Nameable
hasCustomName, method_15540, method_15541, method_6344Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
createScreenHandler, getId
-
Field Details
-
inventory
- Mappings:
Namespace Name Mixin selector official aLapi;a:Lez;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 bLapi;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 cLapi;c:Lpc;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 dLapi;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>Laer;<init>(Laev;Laxy;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_3460;Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
StorageMinecartEntity
protected StorageMinecartEntity(EntityType<?> entityType, double double2, double double3, double double4, World world)
-
-
Method Details
-
dropItems
- Overrides:
dropItemsin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLaph;a(Laea;)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 aLade;a(I)Late;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 aLade;a(II)Late;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 bLade;b(I)Late;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 aLade;a(ILate;)Vintermediary method_2383Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)Vnamed setInvStackLnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
-
equip
-
markDirty
public void markDirty() -
canPlayerUseInv
- Specified by:
canPlayerUseInvin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLade;a(Laog;)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 bLade;b(Laog;)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 cLade;c(Laog;)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 bLade;b(ILate;)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 fLade;f()Iintermediary method_2389Lnet/minecraft/class_849;method_2389()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
method_15562
- Overrides:
method_15562in classEntity- Mappings:
Namespace Name Mixin selector official aLaer;a(Lbod;)Laer;intermediary method_15562Lnet/minecraft/class_864;method_15562(Lnet/minecraft/class_3793;)Lnet/minecraft/class_864;named method_15562Lnet/minecraft/entity/Entity;method_15562(Lnet/minecraft/world/dimension/DimensionType;)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 bLaer;b(Z)Vintermediary method_12991Lnet/minecraft/class_864;method_12991(Z)Vnamed method_12991Lnet/minecraft/entity/Entity;method_12991(Z)V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official bLaer;b(Lgy;)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 aLaer;a(Lgy;)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 bLaer;b(Laog;Ladk;)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 rLaph;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 cLade;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 bLade;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 hLade;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 V_Ladq;V_()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 aLadq;a(Ladp;)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 jLadq;j()Ladp;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 fLapi;f(Laog;)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 aLapi;a(Lpc;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 Q_Lads;Q_()Lpc;intermediary method_12936Lnet/minecraft/class_2964;method_12936()Lnet/minecraft/class_1653;named getLootTableIdLnet/minecraft/class_2964;getLootTableId()Lnet/minecraft/util/Identifier;
-