public abstract class HangingEntity extends Entity
Entity.IMoveCallback
Modifier and Type | Field and Description |
---|---|
private int |
checkInterval |
protected Direction |
direction |
protected static java.util.function.Predicate<Entity> |
HANGING_ENTITY |
protected BlockPos |
pos |
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
NULL
Modifier | Constructor and Description |
---|---|
protected |
HangingEntity(EntityType<? extends HangingEntity> p_i48561_1_,
World p_i48561_2_) |
protected |
HangingEntity(EntityType<? extends HangingEntity> p_i48562_1_,
World p_i48562_2_,
BlockPos p_i48562_3_) |
Modifier and Type | Method and Description |
---|---|
void |
addAdditionalSaveData(CompoundNBT p_213281_1_) |
protected void |
defineSynchedData() |
abstract void |
dropItem(Entity p_110128_1_) |
Direction |
getDirection() |
abstract int |
getHeight() |
BlockPos |
getPos() |
abstract int |
getWidth() |
boolean |
hurt(DamageSource p_70097_1_,
float p_70097_2_) |
boolean |
isPickable() |
float |
mirror(Mirror p_184217_1_) |
void |
move(MoverType p_213315_1_,
Vector3d p_213315_2_) |
private double |
offs(int p_190202_1_) |
abstract void |
playPlacementSound() |
void |
push(double p_70024_1_,
double p_70024_3_,
double p_70024_5_) |
void |
readAdditionalSaveData(CompoundNBT p_70037_1_) |
protected void |
recalculateBoundingBox() |
void |
refreshDimensions() |
protected boolean |
repositionEntityAfterLoad() |
float |
rotate(Rotation p_184229_1_) |
protected void |
setDirection(Direction p_174859_1_) |
void |
setPos(double p_70107_1_,
double p_70107_3_,
double p_70107_5_) |
boolean |
skipAttackInteraction(Entity p_85031_1_) |
ItemEntity |
spawnAtLocation(ItemStack p_70099_1_,
float p_70099_2_) |
boolean |
survives() |
void |
thunderHit(ServerWorld p_241841_1_,
LightningBoltEntity p_241841_2_) |
void |
tick() |
absMoveTo, absMoveTo, acceptsFailure, acceptsSuccess, addPassenger, addTag, animateHurt, awardKillScore, baseTick, blockPosition, broadcastToPlayer, calculateUpVector, calculateViewVector, canAddPassenger, canBeCollidedWith, canChangeDimensions, canCollideWith, canEnterPose, canRide, canSpawnSprintParticle, canTrample, canUpdate, canUpdate, captureDrops, captureDrops, causeFallDamage, changeDimension, 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, getAddEntityPacket, getAirSupply, getAllSlots, getArmorSlots, getBbHeight, getBbWidth, getBlockExplosionResistance, getBlockJumpFactor, getBlockPosBelowThatAffectsMyMovement, getBlockSpeedFactor, getBlockStateOn, getBoundingBox, getBoundingBoxForCulling, getBoundingBoxForPose, getBrightness, getCollisionHorizontalEscapeVector, getCommandSenderWorld, getControllingPassenger, getCustomName, getDeltaMovement, getDimensionChangingDelay, getDimensions, getDismountLocationForPassenger, getDisplayName, getEncodeId, getEntityData, getExitPortal, getEyeHeight, getEyeHeight, getEyeHeight, getEyeHeightAccess, getEyePosition, getEyeY, getFireImmuneTicks, getFluidHeight, getFluidJumpThreshold, getForward, getHandSlots, getHorizontalDistanceSqr, getId, getIndirectPassengers, getLeashOffset, getLightProbePosition, getLookAngle, getMaxAirSupply, getMaxFallDistance, getMotionDirection, getMyRidingOffset, getName, getOnPos, getPacketCoordinates, getPassengers, getPassengersRidingOffset, getPermissionLevel, getPersistentData, getPickRadius, getPistonPushReaction, getPortalWaitTime, getPose, getPosition, getRandomX, getRandomY, getRandomZ, getRelativePortalPosition, 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, interact, 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, isMovementNoisy, isNoGravity, isOnFire, isOnGround, isOnPortalCooldown, isPassenger, isPassengerOfSameVehicle, isPushable, isPushedByFluid, isShiftKeyDown, isSilent, isSpectator, isSprinting, isSteppingCarefully, isSuppressingBounce, isSwimming, isUnderWater, isVehicle, isVisuallyCrawling, isVisuallySwimming, kill, killed, lavaHurt, lerpHeadTo, lerpMotion, lerpTo, limitPistonMovement, load, lookAt, makeFlySound, makeStuckInBlock, markHurt, maybeBackOffFromEdge, 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, remove, remove, removeAfterChangingDimensions, removePassenger, removeTag, removeVehicle, resetPos, restoreFrom, revive, rideableUnderWater, rideTick, save, saveAsPassenger, saveWithoutId, sendMessage, setAirSupply, setBoundingBox, setCustomName, setCustomNameVisible, setDeltaMovement, setDeltaMovement, setGlowing, setId, setInvisible, setInvulnerable, setItemSlot, setLevel, setLocationFromBoundingbox, setNoGravity, setOnGround, setPacketCoordinates, setPacketCoordinates, setPortalCooldown, setPosAndOldPos, setPose, setPosRaw, setRemainingFireTicks, setRot, setSecondsOnFire, setSharedFlag, setShiftKeyDown, setSilent, setSlot, setSprinting, setSwimming, setUUID, setViewScale, setYBodyRot, setYHeadRot, shouldBlockExplode, shouldInformAdmins, shouldRender, shouldRenderAtSqrDistance, shouldShowName, showVehicleHealth, spawnAtLocation, spawnAtLocation, spawnAtLocation, spawnSprintParticle, startRiding, startRiding, startSeenByPlayer, stopRiding, stopSeenByPlayer, teleportTo, teleportToWithTicket, toString, turn, unRide, updateFluidHeightAndDoFluidPushing, updateInWaterStateAndDoFluidPushing, updateSwimming
areCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCaps
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canBeRiddenInWater, canRiderInteract, deserializeNBT, getClassification, getEntity, getParts, getPickedResult, isMultipartEntity, serializeNBT, shouldRiderSit
getCapability, getCapability
protected static final java.util.function.Predicate<Entity> HANGING_ENTITY
private int checkInterval
protected BlockPos pos
protected Direction direction
protected HangingEntity(EntityType<? extends HangingEntity> p_i48561_1_, World p_i48561_2_)
protected HangingEntity(EntityType<? extends HangingEntity> p_i48562_1_, World p_i48562_2_, BlockPos p_i48562_3_)
protected void defineSynchedData()
defineSynchedData
in class Entity
protected void setDirection(Direction p_174859_1_)
protected void recalculateBoundingBox()
private double offs(int p_190202_1_)
public boolean survives()
public boolean isPickable()
isPickable
in class Entity
public boolean skipAttackInteraction(Entity p_85031_1_)
skipAttackInteraction
in class Entity
public Direction getDirection()
getDirection
in class Entity
public boolean hurt(DamageSource p_70097_1_, float p_70097_2_)
public void push(double p_70024_1_, double p_70024_3_, double p_70024_5_)
public void addAdditionalSaveData(CompoundNBT p_213281_1_)
addAdditionalSaveData
in class Entity
public void readAdditionalSaveData(CompoundNBT p_70037_1_)
readAdditionalSaveData
in class Entity
public abstract int getWidth()
public abstract int getHeight()
public abstract void dropItem(@Nullable Entity p_110128_1_)
public abstract void playPlacementSound()
public ItemEntity spawnAtLocation(ItemStack p_70099_1_, float p_70099_2_)
spawnAtLocation
in class Entity
protected boolean repositionEntityAfterLoad()
repositionEntityAfterLoad
in class Entity
public void setPos(double p_70107_1_, double p_70107_3_, double p_70107_5_)
public BlockPos getPos()
public void thunderHit(ServerWorld p_241841_1_, LightningBoltEntity p_241841_2_)
thunderHit
in class Entity
public void refreshDimensions()
refreshDimensions
in class Entity