public class HopperMinecartEntity extends StorageMinecartEntity implements Hopper
AbstractMinecartEntity.Type
Entity.PositionUpdater
Modifier and Type | Field and Description |
---|---|
private BlockPos |
currentBlockPos |
private boolean |
enabled |
private int |
transferCooldown |
age, chunkX, chunkY, chunkZ, dataTracker, distanceTraveled, fallDistance, field_25599, firstUpdate, FLAGS, fluidHeight, glowing, horizontalCollision, horizontalSpeed, ignoreCameraFrustum, inanimate, inNetherPortal, lastNetherPortalPosition, lastRenderX, lastRenderY, lastRenderZ, LOGGER, movementMultiplier, netherPortalTime, noClip, onGround, pitch, POSE, prevHorizontalSpeed, prevPitch, prevX, prevY, prevYaw, prevZ, pushSpeedReduction, random, removed, ridingCooldown, stepHeight, submergedInWater, teleporting, timeUntilRegen, touchingWater, updateNeeded, uuid, uuidString, velocityDirty, velocityModified, verticalCollision, world, yaw
ABOVE_SHAPE, INPUT_AREA_SHAPE, INSIDE_SHAPE
DUMMY
Constructor and Description |
---|
HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> type,
World world) |
HopperMinecartEntity(World world,
double x,
double y,
double z) |
Modifier and Type | Method and 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) |
World |
getWorld() |
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) |
applySlowdown, canPlayerUse, clear, createMenu, equip, generateLoot, getStack, interact, isEmpty, markDirty, moveToWorld, remove, removeStack, removeStack, setLootTable, setStack
animateDamage, canClimb, collides, collidesWith, create, createSpawnPacket, damage, getBlockOffset, getContainedBlock, getDamageWobbleSide, getDamageWobbleStrength, getDamageWobbleTicks, getMaxOffRailSpeed, getMountedHeightOffset, getMovementDirection, getVelocityMultiplier, getVisibilityBoundingBox, hasCustomBlock, initDataTracker, isPushable, method_30633, moveOffRail, moveOnRail, pushAwayFrom, setCustomBlock, setCustomBlockOffset, setCustomBlockPresent, setDamageWobbleSide, setDamageWobbleStrength, setDamageWobbleTicks, setVelocityClient, snapPositionToRail, snapPositionToRailWithOffset, updatePassengerForDismount, updateTrackedPositionAndAngles
addPassenger, addScoreboardTag, addVelocity, adjustMovementForCollisions, adjustMovementForCollisions, adjustMovementForPiston, adjustMovementForSneaking, adjustSingleAxisMovementForCollisions, afterSpawn, applyMirror, applyRotation, baseTick, bypassesLandingEffects, bypassesSteppingEffects, calculateBoundsForPose, calculateDimensions, calculateNextStepSoundDistance, canAddPassenger, canAvoidTraps, canBeRiddenInWater, canBeSpectated, canExplosionDestroyBlock, canFly, canStartRiding, canUsePortals, changeLookDirection, checkBlockCollision, checkDespawn, copyFrom, copyPositionAndRotation, dealDamage, destroy, detach, distanceTo, doesNotCollide, doesRenderOnFire, dropItem, dropItem, dropStack, dropStack, entityDataRequiresOperator, equals, equipStack, extinguish, fall, fromTag, getAir, getArmorItems, getBlockPos, getBodyY, getBoundingBox, getBrightnessAtEyes, getBurningDuration, getCameraPosVec, getCommandSource, getCustomName, getDataTracker, getDefaultName, getDefaultNetherPortalCooldown, getDimensions, getDisplayName, getEffectiveExplosionResistance, getEntityId, getEntityName, getEntityWorld, getEyeHeight, getEyeHeight, getEyeY, getFireTicks, getFlag, getFluidHeight, getHeadYaw, getHeight, getHeightOffset, getHighSpeedSplashSound, getHorizontalFacing, getHoverEvent, getItemsEquipped, getItemsHand, getJumpVelocityMultiplier, getLandingBlockState, getLandingPos, getMaxAir, getMaxNetherPortalTime, 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, isChunkPosUpdateRequested, isCollidable, isConnectedThroughVehicle, isCustomNameVisible, isDescending, isFireImmune, isGlowing, isImmuneToExplosion, isInLava, isInRange, isInsideWall, isInsideWaterOrBubbleColumn, isInSneakingPose, isInSwimmingPose, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isLiving, isLogicalSideForUpdatingMovement, isOnFire, isOnGround, isPartOf, isSilent, isSneaking, isSneaky, isSpectator, isSprinting, isSubmergedIn, isSubmergedInWater, isSwimming, isTeammate, isTeamPlayer, isTouchingWater, isTouchingWaterOrRain, isWet, kill, lookAt, method_29239, method_29241, method_29919, method_30076, method_30330, method_30632, method_30634, method_30950, method_30951, method_31166, move, moveToBoundingBoxCenter, offsetX, offsetZ, onBlockCollision, onBubbleColumnCollision, onBubbleColumnSurfaceCollision, onKilledOther, onPassengerLookAround, onPlayerCollision, onStartedTrackingBy, onStoppedTrackingBy, onStruckByLightning, onSwimmingStart, onTrackedDataSet, playFlySound, playSound, playStepSound, playSwimSound, populateCrashReport, pushOutOfBlocks, raycast, refreshPosition, refreshPositionAfterTeleport, refreshPositionAfterTeleport, refreshPositionAndAngles, refreshPositionAndAngles, removeAllPassengers, removePassenger, removeScoreboardTag, requestTeleport, resetNetherPortalCooldown, resetPosition, saveSelfToTag, saveToTag, scheduleVelocityUpdate, sendSystemMessage, setAir, setBoundingBox, setCustomName, setCustomNameVisible, setEntityId, setFireTicks, setFlag, setGlowing, setHeadYaw, setInNetherPortal, setInvisible, setInvulnerable, setNoGravity, setOnFireFor, setOnFireFromLava, setOnGround, setPos, setPose, setRenderDistanceMultiplier, setRotation, setSilent, setSneaking, setSprinting, setSwimming, setUuid, setVelocity, setVelocity, setWorld, setYaw, shouldBroadcastConsoleToOps, shouldLeaveSwimmingPose, shouldReceiveFeedback, shouldRender, shouldRender, shouldRenderName, shouldSetPositionOnLoad, shouldSpawnSprintingParticles, shouldTrackOutput, slowMovement, spawnSprintingParticles, squaredDistanceTo, squaredDistanceTo, squaredDistanceTo, squaredHorizontalLength, startRiding, startRiding, stopRiding, streamPassengersRecursively, teleport, teleportRequested, tickNetherPortal, tickNetherPortalCooldown, tickRiding, toListTag, toListTag, toString, toTag, updateKilledAdvancementCriterion, updateMovementInFluid, updatePassengerPosition, updatePosition, updatePositionAndAngles, updateSwimming, updateTrackedHeadRotation, updateTrackedPosition, updateTrackedPosition, updateVelocity, updateWaterState, wouldPoseNotCollide
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getInputAreaShape
canPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStack
getDisplayName
private boolean enabled
private int transferCooldown
private final BlockPos currentBlockPos
public HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> type, World world)
public HopperMinecartEntity(World world, double x, double y, double z)
public AbstractMinecartEntity.Type getMinecartType()
getMinecartType
in class AbstractMinecartEntity
public BlockState getDefaultContainedBlock()
getDefaultContainedBlock
in class AbstractMinecartEntity
public int getDefaultBlockOffset()
getDefaultBlockOffset
in class AbstractMinecartEntity
public void onActivatorRail(int x, int y, int z, boolean powered)
onActivatorRail
in class AbstractMinecartEntity
public boolean isEnabled()
public void setEnabled(boolean enabled)
public double getHopperX()
getHopperX
in interface Hopper
public double getHopperY()
getHopperY
in interface Hopper
public double getHopperZ()
getHopperZ
in interface Hopper
public void tick()
tick
in class AbstractMinecartEntity
public boolean canOperate()
public void dropItems(DamageSource damageSource)
dropItems
in class StorageMinecartEntity
protected void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag
in class StorageMinecartEntity
protected void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag
in class StorageMinecartEntity
public void setTransferCooldown(int cooldown)
public boolean isCoolingDown()
public ScreenHandler getScreenHandler(int syncId, PlayerInventory playerInventory)
getScreenHandler
in class StorageMinecartEntity