Package net.minecraft.entity.vehicle
Class HopperMinecartEntity
java.lang.Object
net.minecraft.entity.Entity
net.minecraft.entity.vehicle.AbstractMinecartEntity
net.minecraft.entity.vehicle.StorageMinecartEntity
net.minecraft.entity.vehicle.HopperMinecartEntity
- All Implemented Interfaces:
LockableScreenHandlerFactory,class_2964,CommandSource,Inventory,NamedScreenHandlerFactory,Nameable,HopperProvider
- Mappings:
Namespace Name official afjintermediary net/minecraft/class_1576named net/minecraft/entity/vehicle/HopperMinecartEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
AbstractMinecartEntity.Type -
Field Summary
FieldsFields 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
ConstructorsConstructorDescriptionHopperMinecartEntity(World world) HopperMinecartEntity(World world, double x, double y, double z) -
Method Summary
Modifier and TypeMethodDescriptionbooleancreateScreenHandler(PlayerInventory inventory, PlayerEntity player) voiddropItems(DamageSource damageSource) intgetId()intdoublegetX()doublegetY()doublegetZ()booleaninteract(PlayerEntity player, Hand hand) booleanbooleanstatic voidmethod_13307(class_2934 class_2934) voidonActivatorRail(int x, int y, int z, boolean powered) protected voidvoidsetEnabled(boolean enabled) voidsetTransferCooldown(int cooldown) voidtick()protected voidMethods inherited from class net.minecraft.entity.vehicle.StorageMinecartEntity
applySlowdown, canPlayerUseInv, changeDimension, clear, generateLoot, getInvMaxStackAmount, getInvStack, getLock, getLootTableId, getProperties, getProperty, hasLock, isEmpty, isValidInvStack, markDirty, method_12991, method_13640, onInvClose, onInvOpen, remove, removeInvStack, setInvStack, setLock, setLootTable, setProperty, takeInvStackMethods inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, canClimb, collides, createMinecart, damage, getBlockOffset, getBox, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getHardCollisionBox, getMaxOffRailSpeed, getMountedHeightOffset, getMovementDirection, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, method_13639, moveOffRail, moveOnRail, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomBlockPresent, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, snapPositionToRail, snapPositionToRailWithOffset, 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_15051, method_15052, method_15055, method_2492, method_6344, move, onBlockCollision, 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, 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
canPlayerUseInv, clear, getInvMaxStackAmount, getInvStack, getProperties, getProperty, isEmpty, isValidInvStack, markDirty, onInvClose, onInvOpen, removeInvStack, setInvStack, setProperty, takeInvStackMethods inherited from interface net.minecraft.text.Nameable
getTranslationKey, hasCustomName, method_6344
-
Field Details
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector official aLafj;a:Zintermediary field_6149Lnet/minecraft/class_1576;field_6149:Znamed enabledLnet/minecraft/entity/vehicle/HopperMinecartEntity;enabled:Z
-
transferCooldown
private int transferCooldown- Mappings:
Namespace Name Mixin selector official bLafj;b:Iintermediary field_6150Lnet/minecraft/class_1576;field_6150:Inamed transferCooldownLnet/minecraft/entity/vehicle/HopperMinecartEntity;transferCooldown:I
-
currentBlockPos
- Mappings:
Namespace Name Mixin selector official cLafj;c:Let;intermediary field_12049Lnet/minecraft/class_1576;field_12049:Lnet/minecraft/class_2552;named currentBlockPosLnet/minecraft/entity/vehicle/HopperMinecartEntity;currentBlockPos:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
HopperMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lvg;<init>(Lamu;)Vintermediary <init>Lnet/minecraft/class_864;<init>(Lnet/minecraft/class_1150;)Vnamed <init>Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/world/World;)V
-
HopperMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>Lafe;<init>(Lamu;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
-
getMinecartType
- Specified by:
getMinecartTypein classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official vLafe;v()Lafe$a;intermediary method_11169Lnet/minecraft/class_965;method_11169()Lnet/minecraft/class_965$class_2638;named getMinecartTypeLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
-
getDefaultContainedBlock
- Overrides:
getDefaultContainedBlockin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official xLafe;x()Lawt;intermediary method_11171Lnet/minecraft/class_965;method_11171()Lnet/minecraft/class_2232;named getDefaultContainedBlockLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
-
getDefaultBlockOffset
public int getDefaultBlockOffset()- Overrides:
getDefaultBlockOffsetin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official zLafe;z()Iintermediary method_5425Lnet/minecraft/class_965;method_5425()Inamed getDefaultBlockOffsetLnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
-
getInvSize
public int getInvSize()- Specified by:
getInvSizein interfaceInventory- Mappings:
Namespace Name Mixin selector official w_Ltv;w_()Iintermediary method_2388Lnet/minecraft/class_849;method_2388()Inamed getInvSizeLnet/minecraft/inventory/Inventory;getInvSize()I
-
interact
- Overrides:
interactin classStorageMinecartEntity- Mappings:
Namespace Name Mixin selector official bLvg;b(Laed;Lub;)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
-
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered) - Overrides:
onActivatorRailin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official aLafe;a(IIIZ)Vintermediary method_5409Lnet/minecraft/class_965;method_5409(IIIZ)Vnamed onActivatorRailLnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
-
isEnabled
public boolean isEnabled()- Mappings:
Namespace Name Mixin selector official CLafj;C()Zintermediary method_5432Lnet/minecraft/class_1576;method_5432()Znamed isEnabledLnet/minecraft/entity/vehicle/HopperMinecartEntity;isEnabled()Z
-
setEnabled
public void setEnabled(boolean enabled) - Mappings:
Namespace Name Mixin selector official lLafj;l(Z)Vintermediary method_5433Lnet/minecraft/class_1576;method_5433(Z)Vnamed setEnabledLnet/minecraft/entity/vehicle/HopperMinecartEntity;setEnabled(Z)V
-
getEntityWorld
- Specified by:
getEntityWorldin interfaceHopperProvider- Mappings:
Namespace Name Mixin selector official DLavv;D()Lamu;intermediary method_548Lnet/minecraft/class_1462;method_548()Lnet/minecraft/class_1150;named getEntityWorldLnet/minecraft/util/HopperProvider;getEntityWorld()Lnet/minecraft/world/World;
-
getX
public double getX()- Specified by:
getXin interfaceHopperProvider- Mappings:
Namespace Name Mixin selector official ELavv;E()Dintermediary method_4817Lnet/minecraft/class_1462;method_4817()Dnamed getXLnet/minecraft/util/HopperProvider;getX()D
-
getY
public double getY()- Specified by:
getYin interfaceHopperProvider- Mappings:
Namespace Name Mixin selector official FLavv;F()Dintermediary method_4818Lnet/minecraft/class_1462;method_4818()Dnamed getYLnet/minecraft/util/HopperProvider;getY()D
-
getZ
public double getZ()- Specified by:
getZin interfaceHopperProvider- Mappings:
Namespace Name Mixin selector official GLavv;G()Dintermediary method_4819Lnet/minecraft/class_1462;method_4819()Dnamed getZLnet/minecraft/util/HopperProvider;getZ()D
-
tick
public void tick()- Overrides:
tickin classAbstractMinecartEntity- Mappings:
Namespace Name Mixin selector official B_Lvg;B_()Vintermediary method_2558Lnet/minecraft/class_864;method_2558()Vnamed tickLnet/minecraft/entity/Entity;tick()V
-
canOperate
public boolean canOperate()- Mappings:
Namespace Name Mixin selector official HLafj;H()Zintermediary method_5430Lnet/minecraft/class_1576;method_5430()Znamed canOperateLnet/minecraft/entity/vehicle/HopperMinecartEntity;canOperate()Z
-
dropItems
- Overrides:
dropItemsin classStorageMinecartEntity- Mappings:
Namespace Name Mixin selector official aLafe;a(Lur;)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
-
method_13307
- Mappings:
Namespace Name Mixin selector official aLafj;a(Lry;)Vintermediary method_13307Lnet/minecraft/class_1576;method_13307(Lnet/minecraft/class_2934;)Vnamed method_13307Lnet/minecraft/entity/vehicle/HopperMinecartEntity;method_13307(Lnet/minecraft/class_2934;)V
-
writeCustomDataToNbt
- Overrides:
writeCustomDataToNbtin classStorageMinecartEntity- Mappings:
Namespace Name Mixin selector official bLvg;b(Lfy;)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 classStorageMinecartEntity- Mappings:
Namespace Name Mixin selector official aLvg;a(Lfy;)Vintermediary method_2498Lnet/minecraft/class_864;method_2498(Lnet/minecraft/class_322;)Vnamed readCustomDataFromNbtLnet/minecraft/entity/Entity;readCustomDataFromNbt(Lnet/minecraft/nbt/NbtCompound;)V
-
setTransferCooldown
public void setTransferCooldown(int cooldown) - Mappings:
Namespace Name Mixin selector official gLafj;g(I)Vintermediary method_5434Lnet/minecraft/class_1576;method_5434(I)Vnamed setTransferCooldownLnet/minecraft/entity/vehicle/HopperMinecartEntity;setTransferCooldown(I)V
-
isCoolingDown
public boolean isCoolingDown()- Mappings:
Namespace Name Mixin selector official JLafj;J()Zintermediary method_5431Lnet/minecraft/class_1576;method_5431()Znamed isCoolingDownLnet/minecraft/entity/vehicle/HopperMinecartEntity;isCoolingDown()Z
-
getId
- Specified by:
getIdin interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official lLuc;l()Ljava/lang/String;intermediary method_10906Lnet/minecraft/class_2608;method_10906()Ljava/lang/String;named getIdLnet/minecraft/screen/NamedScreenHandlerFactory;getId()Ljava/lang/String;
-
createScreenHandler
- Specified by:
createScreenHandlerin interfaceNamedScreenHandlerFactory- Mappings:
Namespace Name Mixin selector official aLuc;a(Laec;Laed;)Lafr;intermediary method_10905Lnet/minecraft/class_2608;method_10905(Lnet/minecraft/class_987;Lnet/minecraft/class_988;)Lnet/minecraft/class_1002;named createScreenHandlerLnet/minecraft/screen/NamedScreenHandlerFactory;createScreenHandler(Lnet/minecraft/entity/player/PlayerInventory;Lnet/minecraft/entity/player/PlayerEntity;)Lnet/minecraft/screen/ScreenHandler;
-