public class HopperMinecartEntity extends StorageMinecartEntity implements Hopper
AbstractMinecartEntity.TypeEntity.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, yawABOVE_SHAPE, INPUT_AREA_SHAPE, INSIDE_SHAPEDUMMY| 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, setStackanimateDamage, 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, updateTrackedPositionAndAnglesaddPassenger, 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, wouldPoseNotCollideclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetInputAreaShapecanPlayerUse, containsAny, count, getMaxCountPerStack, getStack, isEmpty, isValid, markDirty, onClose, onOpen, removeStack, removeStack, setStackgetDisplayNameprivate 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 AbstractMinecartEntitypublic BlockState getDefaultContainedBlock()
getDefaultContainedBlock in class AbstractMinecartEntitypublic int getDefaultBlockOffset()
getDefaultBlockOffset in class AbstractMinecartEntitypublic void onActivatorRail(int x,
int y,
int z,
boolean powered)
onActivatorRail in class AbstractMinecartEntitypublic boolean isEnabled()
public void setEnabled(boolean enabled)
public double getHopperX()
getHopperX in interface Hopperpublic double getHopperY()
getHopperY in interface Hopperpublic double getHopperZ()
getHopperZ in interface Hopperpublic void tick()
tick in class AbstractMinecartEntitypublic boolean canOperate()
public void dropItems(DamageSource damageSource)
dropItems in class StorageMinecartEntityprotected void writeCustomDataToTag(CompoundTag tag)
writeCustomDataToTag in class StorageMinecartEntityprotected void readCustomDataFromTag(CompoundTag tag)
readCustomDataFromTag in class StorageMinecartEntitypublic void setTransferCooldown(int cooldown)
public boolean isCoolingDown()
public ScreenHandler getScreenHandler(int syncId, PlayerInventory playerInventory)
getScreenHandler in class StorageMinecartEntity