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:
Hopper
,EntityLike
,Inventory
,NamedScreenHandlerFactory
,ScreenHandlerFactory
,CommandOutput
,Clearable
,Nameable
public class HopperMinecartEntity extends StorageMinecartEntity implements Hopper
- Mappings:
Namespace Name official bji
intermediary net/minecraft/class_1700
named net/minecraft/entity/vehicle/HopperMinecartEntity
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
AbstractMinecartEntity.Type
Nested classes/interfaces inherited from class net.minecraft.entity.Entity
Entity.class_5799, Entity.PositionUpdater, Entity.RemovalReason
-
Field Summary
Fields Modifier and Type Field Description private BlockPos
currentBlockPos
private boolean
enabled
private int
transferCooldown
Fields inherited from class net.minecraft.entity.Entity
age, dataTracker, distanceTraveled, fallDistance, field_28627, field_28629, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, inPowderSnow, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, ridingCooldown, stepHeight, submergedFluidTag, submergedInWater, timeUntilRegen, touchingWater, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, wasInPowderSnow, world, yaw
Fields inherited from interface net.minecraft.server.command.CommandOutput
DUMMY
Fields inherited from interface net.minecraft.block.entity.Hopper
ABOVE_SHAPE, INPUT_AREA_SHAPE, INSIDE_SHAPE
-
Constructor Summary
Constructors Constructor Description HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> type, World world)
HopperMinecartEntity(World world, double x, double y, double z)
-
Method Summary
Modifier and Type Method Description boolean
canOperate()
void
dropItems(DamageSource damageSource)
int
getDefaultBlockOffset()
BlockState
getDefaultContainedBlock()
double
getHopperX()
double
getHopperY()
double
getHopperZ()
AbstractMinecartEntity.Type
getMinecartType()
ScreenHandler
getScreenHandler(int syncId, PlayerInventory playerInventory)
boolean
isCoolingDown()
boolean
isEnabled()
void
onActivatorRail(int x, int y, int z, boolean powered)
protected void
readCustomDataFromTag(CompoundTag tag)
void
setEnabled(boolean enabled)
void
setTransferCooldown(int cooldown)
int
size()
void
tick()
protected void
writeCustomDataToTag(CompoundTag tag)
Methods inherited from class net.minecraft.entity.vehicle.StorageMinecartEntity
applySlowdown, canPlayerUse, clear, createMenu, generateLoot, getStack, interact, isEmpty, markDirty, method_32318, remove, removeStack, removeStack, setLootTable, setStack
Methods inherited from class net.minecraft.entity.vehicle.AbstractMinecartEntity
animateDamage, collides, collidesWith, create, createSpawnPacket, damage, getBlockOffset, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getMaxOffRailSpeed, getMountedHeightOffset, getMovementDirection, getPickBlockStack, getVelocityMultiplier, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, method_30633, method_33570, moveOffRail, moveOnRail, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomBlockPresent, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, snapPositionToRail, snapPositionToRailWithOffset, updatePassengerForDismount, updateTrackedPositionAndAngles
Methods inherited from class net.minecraft.entity.Entity
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, applyMirror, applyRotation, attemptTickInVoid, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canFreeze, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, collidesWithStateAtPos, copyFrom, copyPositionAndRotation, dealDamage, detach, discard, dismountVehicle, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, emitGameEvent, emitGameEvent, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBlockX, getBlockY, getBlockZ, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getChunkPos, getClientCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFirstPassenger, getFlag, getFluidHeight, getFreezingScale, getFrozenTicks, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getId, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getLerpedPos, getMaxAir, getMaxNetherPortalTime, getMinFreezeDamageTicks, getName, getOppositeRotationVector, getOppositeRotationVector, getParticleX, getParticleZ, getPassengerDismountOffset, getPassengerList, getPassengersDeep, getPermissionLevel, getPistonBehavior, getPitch, getPos, getPose, getPrimaryPassenger, getRandomBodyY, getRenderDistanceMultiplier, getRootVehicle, getRotationClient, getRotationVec, getRotationVecClient, getRotationVector, getRotationVector, getSafeFallDistance, getSavedEntityId, getScoreboardTags, getScoreboardTeam, getServer, getSoundCategory, getSplashSound, getStandingEyeHeight, 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, isRemoved, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29241, method_29919, method_30330, method_30951, method_31744, method_32877, method_33332, method_33567, method_33568, method_33569, method_33571, method_33573, method_33574, method_33575, move, moveToWorld, occludeVibrationSignals, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onSpawnPacket, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removeFromDimension, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setFrozenTicks, setGlowing, setHeadYaw, setInNetherPortal, setInPowderSnow, setInvisible, setInvulnerable, setNoGravity, setOnFire, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, 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, streamPassengers, streamPassengersRecursively, teleport, tickInVoid, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, unsetRemoved, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.block.entity.Hopper
getInputAreaShape
Methods inherited from interface net.minecraft.inventory.Inventory
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack
Methods inherited from interface net.minecraft.screen.NamedScreenHandlerFactory
getDisplayName
-
Field Details
-
enabled
private boolean enabled- Mappings:
Namespace Name Mixin selector official d
Lbji;d:Z
intermediary field_7749
Lnet/minecraft/class_1700;field_7749:Z
named enabled
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;enabled:Z
-
transferCooldown
private int transferCooldown- Mappings:
Namespace Name Mixin selector official e
Lbji;e:I
intermediary field_7748
Lnet/minecraft/class_1700;field_7748:I
named transferCooldown
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;transferCooldown:I
-
currentBlockPos
- Mappings:
Namespace Name Mixin selector official f
Lbji;f:Lfx;
intermediary field_7750
Lnet/minecraft/class_1700;field_7750:Lnet/minecraft/class_2338;
named currentBlockPos
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;currentBlockPos:Lnet/minecraft/util/math/BlockPos;
-
-
Constructor Details
-
HopperMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>
Laqv;<init>(Laqz;Lbtv;)V
intermediary <init>
Lnet/minecraft/class_1297;<init>(Lnet/minecraft/class_1299;Lnet/minecraft/class_1937;)V
named <init>
Lnet/minecraft/entity/Entity;<init>(Lnet/minecraft/entity/EntityType;Lnet/minecraft/world/World;)V
-
HopperMinecartEntity
- Mappings:
Namespace Name Mixin selector official <init>
Lbji;<init>(Lbtv;DDD)V
intermediary <init>
Lnet/minecraft/class_1700;<init>(Lnet/minecraft/class_1937;DDD)V
named <init>
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;<init>(Lnet/minecraft/world/World;DDD)V
-
-
Method Details
-
getMinecartType
- Specified by:
getMinecartType
in classAbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official o
Lbja;o()Lbja$a;
intermediary method_7518
Lnet/minecraft/class_1688;method_7518()Lnet/minecraft/class_1688$class_1689;
named getMinecartType
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getMinecartType()Lnet/minecraft/entity/vehicle/AbstractMinecartEntity$Type;
-
getDefaultContainedBlock
- Overrides:
getDefaultContainedBlock
in classAbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official q
Lbja;q()Lcht;
intermediary method_7517
Lnet/minecraft/class_1688;method_7517()Lnet/minecraft/class_2680;
named getDefaultContainedBlock
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultContainedBlock()Lnet/minecraft/block/BlockState;
-
getDefaultBlockOffset
public int getDefaultBlockOffset()- Overrides:
getDefaultBlockOffset
in classAbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official s
Lbja;s()I
intermediary method_7526
Lnet/minecraft/class_1688;method_7526()I
named getDefaultBlockOffset
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;getDefaultBlockOffset()I
-
size
public int size() -
onActivatorRail
public void onActivatorRail(int x, int y, int z, boolean powered)- Overrides:
onActivatorRail
in classAbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official a
Lbja;a(IIIZ)V
intermediary method_7506
Lnet/minecraft/class_1688;method_7506(IIIZ)V
named onActivatorRail
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;onActivatorRail(IIIZ)V
-
isEnabled
public boolean isEnabled()- Mappings:
Namespace Name Mixin selector official v
Lbji;v()Z
intermediary method_7572
Lnet/minecraft/class_1700;method_7572()Z
named isEnabled
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;isEnabled()Z
-
setEnabled
public void setEnabled(boolean enabled)- Mappings:
Namespace Name Mixin selector official p
Lbji;p(Z)V
intermediary method_7570
Lnet/minecraft/class_1700;method_7570(Z)V
named setEnabled
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;setEnabled(Z)V
-
getHopperX
public double getHopperX()- Specified by:
getHopperX
in interfaceHopper
- Mappings:
Namespace Name Mixin selector official w
Lcgi;w()D
intermediary method_11266
Lnet/minecraft/class_2615;method_11266()D
named getHopperX
Lnet/minecraft/block/entity/Hopper;getHopperX()D
-
getHopperY
public double getHopperY()- Specified by:
getHopperY
in interfaceHopper
- Mappings:
Namespace Name Mixin selector official x
Lcgi;x()D
intermediary method_11264
Lnet/minecraft/class_2615;method_11264()D
named getHopperY
Lnet/minecraft/block/entity/Hopper;getHopperY()D
-
getHopperZ
public double getHopperZ()- Specified by:
getHopperZ
in interfaceHopper
- Mappings:
Namespace Name Mixin selector official z
Lcgi;z()D
intermediary method_11265
Lnet/minecraft/class_2615;method_11265()D
named getHopperZ
Lnet/minecraft/block/entity/Hopper;getHopperZ()D
-
tick
public void tick()- Overrides:
tick
in classAbstractMinecartEntity
- Mappings:
Namespace Name Mixin selector official j
Laqv;j()V
intermediary method_5773
Lnet/minecraft/class_1297;method_5773()V
named tick
Lnet/minecraft/entity/Entity;tick()V
-
canOperate
public boolean canOperate()- Mappings:
Namespace Name Mixin selector official A
Lbji;A()Z
intermediary method_7574
Lnet/minecraft/class_1700;method_7574()Z
named canOperate
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;canOperate()Z
-
dropItems
- Overrides:
dropItems
in classStorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official a
Lbja;a(Laqf;)V
intermediary method_7516
Lnet/minecraft/class_1688;method_7516(Lnet/minecraft/class_1282;)V
named dropItems
Lnet/minecraft/entity/vehicle/AbstractMinecartEntity;dropItems(Lnet/minecraft/entity/damage/DamageSource;)V
-
writeCustomDataToTag
- Overrides:
writeCustomDataToTag
in classStorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official b
Laqv;b(Lmq;)V
intermediary method_5652
Lnet/minecraft/class_1297;method_5652(Lnet/minecraft/class_2487;)V
named writeCustomDataToTag
Lnet/minecraft/entity/Entity;writeCustomDataToTag(Lnet/minecraft/nbt/CompoundTag;)V
-
readCustomDataFromTag
- Overrides:
readCustomDataFromTag
in classStorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official a
Laqv;a(Lmq;)V
intermediary method_5749
Lnet/minecraft/class_1297;method_5749(Lnet/minecraft/class_2487;)V
named readCustomDataFromTag
Lnet/minecraft/entity/Entity;readCustomDataFromTag(Lnet/minecraft/nbt/CompoundTag;)V
-
setTransferCooldown
public void setTransferCooldown(int cooldown)- Mappings:
Namespace Name Mixin selector official n
Lbji;n(I)V
intermediary method_7571
Lnet/minecraft/class_1700;method_7571(I)V
named setTransferCooldown
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;setTransferCooldown(I)V
-
isCoolingDown
public boolean isCoolingDown()- Mappings:
Namespace Name Mixin selector official B
Lbji;B()Z
intermediary method_7573
Lnet/minecraft/class_1700;method_7573()Z
named isCoolingDown
Lnet/minecraft/entity/vehicle/HopperMinecartEntity;isCoolingDown()Z
-
getScreenHandler
- Specified by:
getScreenHandler
in classStorageMinecartEntity
- Mappings:
Namespace Name Mixin selector official a
Lbjb;a(ILbhk;)Lbjr;
intermediary method_17357
Lnet/minecraft/class_1693;method_17357(ILnet/minecraft/class_1661;)Lnet/minecraft/class_1703;
named getScreenHandler
Lnet/minecraft/entity/vehicle/StorageMinecartEntity;getScreenHandler(ILnet/minecraft/entity/player/PlayerInventory;)Lnet/minecraft/screen/ScreenHandler;
-