public class HopperMinecartEntity extends ContainerMinecartEntity implements IHopper
AbstractMinecartEntity.Type
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private int |
cooldownTime |
private boolean |
enabled |
private BlockPos |
lastPosition |
blocksBuilding, boardingCooldown, DATA_POSE, DATA_SHARED_FLAGS_ID, entityData, fallDistance, firstTick, fluidHeight, fluidOnEyes, forcedLoading, glowing, hasImpulse, horizontalCollision, hurtMarked, inChunk, invulnerableTime, isInsidePortal, level, LOGGER, maxUpStep, moveDist, noCulling, noPhysics, onGround, portalEntrancePos, portalTime, pushthrough, random, removed, stringUUID, stuckSpeedMultiplier, tickCount, uuid, verticalCollision, walkDist, walkDistO, wasEyeInWater, wasTouchingWater, xChunk, xo, xOld, xRot, xRotO, yChunk, yo, yOld, yRot, yRotO, zChunk, zo, zOld
DEFAULT_AIR_DRAG, DEFAULT_MAX_SPEED_AIR_LATERAL, DEFAULT_MAX_SPEED_AIR_VERTICAL
NULL
Constructor and Description |
---|
HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> p_i50116_1_,
World p_i50116_2_) |
HopperMinecartEntity(World p_i1721_1_,
double p_i1721_2_,
double p_i1721_4_,
double p_i1721_6_) |
Modifier and Type | Method and Description |
---|---|
void |
activateMinecart(int p_96095_1_,
int p_96095_2_,
int p_96095_3_,
boolean p_96095_4_) |
protected void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
Container |
createMenu(int p_213968_1_,
PlayerInventory p_213968_2_) |
void |
destroy(DamageSource p_94095_1_) |
int |
getContainerSize() |
BlockState |
getDefaultDisplayBlockState() |
int |
getDefaultDisplayOffset() |
World |
getLevel() |
double |
getLevelX() |
double |
getLevelY() |
double |
getLevelZ() |
AbstractMinecartEntity.Type |
getMinecartType() |
boolean |
isEnabled() |
boolean |
isOnCooldown() |
protected void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
void |
setCooldown(int p_98042_1_) |
void |
setEnabled(boolean p_96110_1_) |
boolean |
suckInItems() |
void |
tick() |
applyNaturalSlowdown, changeDimension, clearContent, createMenu, dropContentsWhenDead, getCapability, getItem, interact, invalidateCaps, isEmpty, remove, removeItem, removeItemNoUpdate, setChanged, setItem, setLootTable, setSlot, stillValid, unpackLootTable
animateHurt, canCollideWith, canUseRail, comeOffTrack, createMinecart, defineSynchedData, getAddEntityPacket, getBlockSpeedFactor, getBoundingBoxForCulling, getCollisionHandler, getCurrentCartSpeedCapOnRail, getDamage, getDismountLocationForPassenger, getDisplayBlockState, getDisplayOffset, getDragAir, getHurtDir, getHurtTime, getMaxSpeed, getMaxSpeedAirLateral, getMaxSpeedAirVertical, getMaxSpeedWithRail, getMotionDirection, getPassengersRidingOffset, getPos, getPosOffs, getRelativePortalPosition, hasCustomDisplay, hurt, isMovementNoisy, isPickable, isPushable, lerpMotion, lerpTo, moveAlongTrack, moveMinecartOnRail, push, registerCollisionHandler, setCanUseRail, setCurrentCartSpeedCapOnRail, setCustomDisplay, setDamage, setDisplayBlockState, setDisplayOffset, setDragAir, setHurtDir, setHurtTime, setMaxSpeedAirLateral, setMaxSpeedAirVertical
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, checkAndResetForcedChunkAdditionFlag, checkAndResetUpdateChunkPos, checkDespawn, checkFallDamage, checkInsideBlocks, clearFire, closerThan, collideBoundingBox, collideBoundingBoxHeuristically, collideBoundingBoxLegacy, copyPosition, createCommandSourceStack, createHoverEvent, displayFireAnimation, distanceTo, distanceToSqr, distanceToSqr, distanceToSqr, doEnchantDamageEffects, doWaterSplashEffect, ejectPassengers, equals, fillCrashReportCategory, findDimensionEntryPoint, fireImmune, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockStateOn, getBoundingBox, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDirection, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRemainingFireTicks, getRootVehicle, getRopeHoldPosition, getRotationVector, getScoreboardName, getSelfAndPassengers, getServer, getSharedFlag, getSoundSource, getStringUUID, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTags, getTeam, getTeamColor, getType, getTypeName, getUpVector, getUUID, getVehicle, getViewScale, getViewVector, getViewXRot, getViewYRot, getX, getX, getY, getY, getYHeadRot, getZ, getZ, handleEntityEvent, handleInsidePortal, handleNetherPortal, hasCustomName, hashCode, hasIndirectPassenger, hasOnePlayerPassenger, hasPassenger, hasPassenger, hasPermissions, ignoreExplosion, interactAt, is, isAddedToWorld, isAlive, isAlliedTo, isAlliedTo, isAttackable, isColliding, isControlledByLocalInstance, isCrouching, isCustomNameVisible, isDescending, isDiscrete, isEyeInFluid, isFree, isGlowing, isIgnoringBlockTriggers, isInLava, isInvisible, isInvisibleTo, isInvulnerable, isInvulnerableTo, isInWall, isInWater, isInWaterOrBubble, isInWaterOrRain, isInWaterRainOrBubble, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, mirror, move, moveRelative, moveTo, moveTo, moveTo, moveTo, moveTowardsClosestSpace, newDoubleList, newFloatList, nextStep, onAboveBubbleCol, onAddedToWorld, onInsideBlock, onInsideBubbleColumn, onlyOpCanSetNbt, onPassengerTurned, onRemovedFromWorld, onSyncedDataUpdated, outOfWorld, pick, playerTouch, playFlySound, playSound, playStepSound, playSwimSound, position, positionRider, processPortalCooldown, push, reapplyPosition, refreshDimensions, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, repositionEntityAfterLoad, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, rotate, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPos, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, skipAttackInteraction, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, thunderHit, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getSuckShape
canPlaceItem, countItem, getItem, getMaxStackSize, hasAnyOf, isEmpty, removeItem, removeItemNoUpdate, setChanged, setItem, startOpen, stillValid, stopOpen
clearContent, tryClear
getDisplayName
canBeRidden, getCartItem, getComparatorLevel, getCurrentRailPosition, getMaxCartSpeedOnRail, getMinecart, getSlopeAdjustment, isPoweredCart, shouldDoRailFunctions
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
getCapability
private boolean enabled
private int cooldownTime
private final BlockPos lastPosition
public HopperMinecartEntity(EntityType<? extends HopperMinecartEntity> p_i50116_1_, World p_i50116_2_)
public HopperMinecartEntity(World p_i1721_1_, double p_i1721_2_, double p_i1721_4_, double p_i1721_6_)
public AbstractMinecartEntity.Type getMinecartType()
getMinecartType
in class AbstractMinecartEntity
public BlockState getDefaultDisplayBlockState()
getDefaultDisplayBlockState
in class AbstractMinecartEntity
public int getDefaultDisplayOffset()
getDefaultDisplayOffset
in class AbstractMinecartEntity
public int getContainerSize()
getContainerSize
in interface IInventory
public void activateMinecart(int p_96095_1_, int p_96095_2_, int p_96095_3_, boolean p_96095_4_)
activateMinecart
in class AbstractMinecartEntity
public boolean isEnabled()
public void setEnabled(boolean p_96110_1_)
public void tick()
tick
in class AbstractMinecartEntity
public boolean suckInItems()
public void destroy(DamageSource p_94095_1_)
destroy
in class ContainerMinecartEntity
protected void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class ContainerMinecartEntity
protected void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class ContainerMinecartEntity
public void setCooldown(int p_98042_1_)
public boolean isOnCooldown()
public Container createMenu(int p_213968_1_, PlayerInventory p_213968_2_)
createMenu
in class ContainerMinecartEntity