Package net.minecraft.entity.vehicle
Class InventoryMinecartEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.AbstractMinecartEntity
net.minecraft.entity.vehicle.InventoryMinecartEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,CommandSource,Inventory,NamedScreenHandlerFactory,Nameable
- Direct Known Subclasses:
ChestMinecartEntity,HopperMinecartEntity
public abstract class InventoryMinecartEntity extends AbstractMinecartEntity implements LockableScreenHandlerFactory
- Mappings:
Namespace Name official vdintermediary net/minecraft/class_1899named net/minecraft/entity/vehicle/InventoryMinecartEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
AbstractMinecartEntity.Type -
Field Summary
Fields Modifier and Type Field Description private booleanfield_8168private ItemStack[]stacksFields inherited from class net.minecraft.entity.Entity
changingDimension, colliding, dataTracker, dimension, distanceTraveled, fallDistance, field_7357, field_7362, field_7363, field_7364, field_7365, field_7370, field_7390, fireResistance, firstUpdate, height, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inLava, isFireImmune, lastPortalBlockPos, lastPortalVec3d, netherPortalCooldown, noClip, onGround, pitch, playerUuid, prevHorizontalSpeed, prevPitch, prevTickX, prevTickY, prevTickZ, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, renderDistanceMultiplier, rider, stepHeight, teleportDirection, teleporting, ticksAlive, touchingWater, trackedX, trackedY, trackedZ, vehicle, velocityDirty, velocityModified, velocityX, velocityY, velocityZ, verticalCollision, width, world, x, y, yaw, z -
Constructor Summary
Constructors Constructor Description InventoryMinecartEntity(World world)InventoryMinecartEntity(World world, double x, double y, double z) -
Method Summary
Modifier and Type Method Description protected voidapplySlowdown()booleancanPlayerUseInv(PlayerEntity player)voidclear()protected voiddeserialize(CompoundTag tag)voiddropItems(DamageSource damageSource)intgetInvMaxStackAmount()ItemStackgetInvStack(int slot)ScreenHandlerLockgetLock()intgetProperties()intgetProperty(int key)StringgetTranslationKey()booleanhasLock()booleanisValidInvStack(int slot, ItemStack stack)voidmarkDirty()voidonInvClose(PlayerEntity player)voidonInvOpen(PlayerEntity player)booleanopenInventory(PlayerEntity player)voidremove()ItemStackremoveInvStack(int slot)protected voidserialize(CompoundTag tag)voidsetInvStack(int slot, ItemStack stack)voidsetLock(ScreenHandlerLock lock)voidsetProperty(int id, int value)ItemStacktakeInvStack(int slot, int amount)voidteleportToDimension(int dimensionId)Methods inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, canClimb, collides, createMinecart, damage, getBox, getCustomName, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getDefaultBlockOffset, getDefaultContainedBlock, getHardCollisionBox, getMaxOffRailSpeed, getMountedHeightOffset, getName, hasCustomName, initDataTracker, isPushable, method_7776, method_7783, method_7785, method_7789, method_7794, method_7795, method_7797, method_7799, moveOnRail, onActivatorRail, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomName, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, tick, updatePosition, updateTrackedPositionAndAnglesMethods inherited from class net.minecraft.entity.Entity
addVelocity, afterSpawn, attemptSprintingParticles, baseTick, burn, canAvoidTraps, canFly, canUseCommand, checkBlockCollision, copyPortalInfo, copyPosition, destroy, doesNotCollide, doesRenderOnFire, equals, equip, extinguish, fall, fromClientTag, fromTag, getAir, getArmorStacks, getBlastResistance, getBlockPos, getBoundingBox, getCameraPosVec, getCommandStats, getDataTracker, getDefaultNetherPortalCooldown, getDistanceTo, getEntity, getEntityId, getEyeHeight, getFlag, getHeadRotation, getHeightOffset, getHorizontalDirection, getHoverEvent, getLastNetherPortalDirection, getLastNetherPortalDirectionVector, getMaxNetherPortalTime, getPos, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getSplashSound, getSwimSound, getUuid, getWorld, handleAttack, handleFallDamage, handleStatus, hashCode, hasVehicle, increaseTransforms, interactAt, isAlive, isAttackable, isCustomNameVisible, isFireImmune, isImmuneToExplosion, isInsideWall, isInvisible, isInvisibleTo, isInvulnerableTo, isOnFire, isOutsideWorldborder, isPartOf, isSilent, isSneaking, isSpectatedBy, isSprinting, isSubmergedIn, isTouchingWater, kill, method_6912, method_6924, method_6926, method_6939, method_6940, method_6943, method_6944, method_6945, method_6948, method_6949, method_6968, method_6971, method_6977, method_6981, method_6984, method_6985, method_6994, method_6998, method_7008, method_7020, method_7049, method_7051, method_7058, move, onLightningStrike, onPlayerCollision, onSwimmingStart, playSound, playStepSound, populateCrashReport, rayTrace, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, saveSelfToTag, scheduleVelocityUpdate, sendCommandFeedback, sendMessage, setAir, setArmorSlot, setBoundingBox, setBounds, setCustomNameVisible, setEntityId, setFlag, setHeadYaw, setInNetherPortal, setInvisible, setOnFireFor, setOnFireFromLava, setOutsideWorldborder, setRotation, setSilent, setSneaking, setSprinting, setStat, setSwimming, setWorld, setYaw, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredDistanceToCenter, squaredDistanceToEntity, startRiding, tickFire, tickRiding, toListTag, toListTag, toString, updateKilledAdvancementCriterion, updatePositionAndAngles, writePlayerDataMethods 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
getName, hasCustomNameMethods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
createScreenHandler, getId
-
Field Details
-
stacks
- Mappings:
Namespace Name Mixin selector official aLvd;a:[Lzx;intermediary field_8167Lnet/minecraft/class_1899;field_8167:[Lnet/minecraft/class_2056;named stacksLnet/minecraft/entity/vehicle/InventoryMinecartEntity;stacks:[Lnet/minecraft/item/ItemStack;
-
field_8168
private boolean field_8168- Mappings:
Namespace Name Mixin selector official bLvd;b:Zintermediary field_8168Lnet/minecraft/class_1899;field_8168:Znamed field_8168Lnet/minecraft/entity/vehicle/InventoryMinecartEntity;field_8168:Z
-
-
Constructor Details
-
InventoryMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lpk;<init>(Ladm;)Vintermediary <init>Lnet/minecraft/class_1745;<init>(Lnet/minecraft/class_99;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
InventoryMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lva;<init>(Ladm;DDD)Vintermediary <init>Lnet/minecraft/class_1895;<init>(Lnet/minecraft/class_99;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 aLva;a(Low;)Vintermediary method_7782Lnet/minecraft/class_1895;method_7782(Lnet/minecraft/class_1733;)Vnamed dropItemsLnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
getInvStack
- Specified by:
getInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLog;a(I)Lzx;intermediary method_6736Lnet/minecraft/class_1718;method_6736(I)Lnet/minecraft/class_2056;named getInvStackLnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
-
takeInvStack
- Specified by:
takeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLog;a(II)Lzx;intermediary method_6737Lnet/minecraft/class_1718;method_6737(II)Lnet/minecraft/class_2056;named takeInvStackLnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
-
removeInvStack
- Specified by:
removeInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLog;b(I)Lzx;intermediary method_6741Lnet/minecraft/class_1718;method_6741(I)Lnet/minecraft/class_2056;named removeInvStackLnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
-
setInvStack
- Specified by:
setInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official aLog;a(ILzx;)Vintermediary method_6738Lnet/minecraft/class_1718;method_6738(ILnet/minecraft/class_2056;)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 aLog;a(Lwn;)Zintermediary method_6739Lnet/minecraft/class_1718;method_6739(Lnet/minecraft/class_1963;)Znamed canPlayerUseInvLnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
onInvOpen
- Specified by:
onInvOpenin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLog;b(Lwn;)Vintermediary method_6744Lnet/minecraft/class_1718;method_6744(Lnet/minecraft/class_1963;)Vnamed onInvOpenLnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
-
onInvClose
- Specified by:
onInvClosein interfaceInventory- Mappings:
Namespace Name Mixin selector official cLog;c(Lwn;)Vintermediary method_6745Lnet/minecraft/class_1718;method_6745(Lnet/minecraft/class_1963;)Vnamed onInvCloseLnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
-
isValidInvStack
- Specified by:
isValidInvStackin interfaceInventory- Mappings:
Namespace Name Mixin selector official bLog;b(ILzx;)Zintermediary method_6743Lnet/minecraft/class_1718;method_6743(ILnet/minecraft/class_2056;)Znamed isValidInvStackLnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
-
getTranslationKey
- Specified by:
getTranslationKeyin interfaceCommandSource- Specified by:
getTranslationKeyin interfaceNameable- Overrides:
getTranslationKeyin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official method_6261Lm;method_6261()Ljava/lang/String;intermediary method_6261Lnet/minecraft/class_1659;method_6261()Ljava/lang/String;named getTranslationKeyLnet/minecraft/command/CommandSource;getTranslationKey()Ljava/lang/String;
-
getInvMaxStackAmount
public int getInvMaxStackAmount()- Specified by:
getInvMaxStackAmountin interfaceInventory- Mappings:
Namespace Name Mixin selector official q_Log;q_()Iintermediary method_6749Lnet/minecraft/class_1718;method_6749()Inamed getInvMaxStackAmountLnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
-
teleportToDimension
public void teleportToDimension(int dimensionId)- Overrides:
teleportToDimensionin classEntity- Mappings:
Namespace Name Mixin selector official cLpk;c(I)Vintermediary method_7010Lnet/minecraft/class_1745;method_7010(I)Vnamed teleportToDimensionLnet/minecraft/entity/Entity;teleportToDimension(I)V
-
remove
public void remove()- Overrides:
removein classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official JLpk;J()Vintermediary method_6899Lnet/minecraft/class_1745;method_6899()Vnamed removeLnet/minecraft/entity/Entity;remove()V
-
serialize
- Overrides:
serializein classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official bLpk;b(Ldn;)Vintermediary method_7003Lnet/minecraft/class_1745;method_7003(Lnet/minecraft/class_1405;)Vnamed serializeLnet/minecraft/entity/Entity;serialize(Lnet/minecraft/nbt/CompoundTag;)V
-
deserialize
- Overrides:
deserializein classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLpk;a(Ldn;)Vintermediary method_6933Lnet/minecraft/class_1745;method_6933(Lnet/minecraft/class_1405;)Vnamed deserializeLnet/minecraft/entity/Entity;deserialize(Lnet/minecraft/nbt/CompoundTag;)V
-
openInventory
- Overrides:
openInventoryin classEntity- Mappings:
Namespace Name Mixin selector official eLpk;e(Lwn;)Zintermediary method_7028Lnet/minecraft/class_1745;method_7028(Lnet/minecraft/class_1963;)Znamed openInventoryLnet/minecraft/entity/Entity;openInventory(Lnet/minecraft/entity/player/PlayerEntity;)Z
-
applySlowdown
protected void applySlowdown()- Overrides:
applySlowdownin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official oLva;o()Vintermediary method_7790Lnet/minecraft/class_1895;method_7790()Vnamed applySlowdownLnet/minecraft/entity/vehicle/AbstractMinecartEntity;applySlowdown()V
-
getProperty
public int getProperty(int key)- Specified by:
getPropertyin interfaceInventory- Mappings:
Namespace Name Mixin selector official a_Log;a_(I)Iintermediary method_6740Lnet/minecraft/class_1718;method_6740(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 bLog;b(II)Vintermediary method_6742Lnet/minecraft/class_1718;method_6742(II)Vnamed setPropertyLnet/minecraft/inventory/Inventory;setProperty(II)V
-
getProperties
public int getProperties()- Specified by:
getPropertiesin interfaceInventory- Mappings:
Namespace Name Mixin selector official gLog;g()Iintermediary method_6746Lnet/minecraft/class_1718;method_6746()Inamed getPropertiesLnet/minecraft/inventory/Inventory;getProperties()I
-
hasLock
public boolean hasLock()- Specified by:
hasLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official r_Loo;r_()Zintermediary method_6769Lnet/minecraft/class_1725;method_6769()Znamed hasLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;hasLock()Z
-
setLock
- Specified by:
setLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official aLoo;a(Lon;)Vintermediary method_6767Lnet/minecraft/class_1725;method_6767(Lnet/minecraft/class_1724;)Vnamed setLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;setLock(Lnet/minecraft/inventory/ScreenHandlerLock;)V
-
getLock
- Specified by:
getLockin interfaceLockableScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official iLoo;i()Lon;intermediary method_6768Lnet/minecraft/class_1725;method_6768()Lnet/minecraft/class_1724;named getLockLnet/minecraft/block/entity/LockableScreenHandlerFactory;getLock()Lnet/minecraft/inventory/ScreenHandlerLock;
-
clear
public void clear()
-