Package net.minecraft.world.entity
Class Entity
- All Implemented Interfaces:
- CommandSource,- EntityAccess,- Nameable,- ICapabilityProvider,- ICapabilityProviderImpl<Entity>,- ICapabilitySerializable<CompoundTag>,- IForgeEntity,- INBTSerializable<CompoundTag>
- Direct Known Subclasses:
- AbstractMinecart,- AreaEffectCloud,- Boat,- Display,- EndCrystal,- EvokerFangs,- ExperienceOrb,- EyeOfEnder,- FallingBlockEntity,- HangingEntity,- Interaction,- ItemEntity,- LightningBolt,- LivingEntity,- Marker,- PartEntity,- PrimedTnt,- Projectile
public abstract class Entity
extends CapabilityProvider<Entity>
implements Nameable, EntityAccess, CommandSource, IForgeEntity
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic enumstatic enumNested classes/interfaces inherited from class net.minecraftforge.common.capabilities.CapabilityProviderCapabilityProvider.AsField<B extends ICapabilityProviderImpl<B>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intprivate AABBprivate BlockPosbooleanstatic final intprotected intstatic final floatprivate booleanprivate Collection<ItemEntity>private ChunkPosprivate floatprivate static final EntityDataAccessor<Integer>private static final EntityDataAccessor<Optional<Component>>private static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Boolean>protected static final EntityDataAccessor<Pose>protected static final EntityDataAccessor<Byte>private static final EntityDataAccessor<Boolean>private static final EntityDataAccessor<Integer>static final floatstatic final floatstatic final floatstatic final doublestatic final doubleprivate Vec3private EntityDimensionsprotected static final AtomicIntegerprotected final SynchedEntityDataprivate floatfloatprivate BlockStateprotected booleanprotected static final intprotected static final intprivate static final intprotected static final intprivate static final intprivate static final intprivate static final intDeprecated.Deprecated.floatprotected it.unimi.dsi.fastutil.objects.Object2DoubleMap<FluidType>private FluidTypestatic final intprivate booleanprivate booleanbooleanprivate booleanbooleanbooleanprivate intstatic final Stringprivate static final AABBprivate booleanintprivate booleanInternal use for keeping track of entities that are tracked by a world, to allow guarantees that entity position changes will force a chunk load, avoiding potential issues with entity desyncing and bad chunk data.booleanprotected booleanprivate intprivate static final doubleprivate static final doubleprivate Levelprivate EntityInLevelCallbackprivate static final org.slf4j.Loggerstatic final intprivate floatbooleanfloatprivate floatbooleanbooleanprivate booleanprivate booleanprivate final VecDeltaCodecprivate com.google.common.collect.ImmutableList<Entity>static final Stringprivate CompoundTagprivate final double[]private longprivate intprotected BlockPosprotected intprivate Vec3protected final RandomSourceprivate intprivate Entity.RemovalReasonprotected Stringprotected Vec3intstatic final intprivate final EntityType<?>Deprecated.protected UUIDstatic final Stringprivate Entitybooleanbooleanprivate static doublefloatfloatprotected booleanbooleanbooleanprotected booleanprivate static final doubledoubledoubleprivate floatfloatdoubledoubleprivate floatfloatdoubledoubleFields inherited from interface net.minecraft.commands.CommandSourceNULL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidabsMoveTo(double p_20249_, double p_20250_, double p_20251_) voidabsMoveTo(double p_19891_, double p_19892_, double p_19893_, float p_19894_, float p_19895_) booleanbooleanprotected abstract voidaddAdditionalSaveData(CompoundTag p_20139_) voidaddDeltaMovement(Vec3 p_250128_) protected voidaddPassenger(Entity p_20349_) booleanvoidanimateHurt(float p_265161_) private doubleapplyPistonMovementRestriction(Direction.Axis p_20043_, double p_20044_) voidawardKillScore(Entity p_19953_, int p_19954_, DamageSource p_19955_) voidbaseTick()booleanbroadcastToPlayer(ServerPlayer p_19937_) protected final Vec3calculateUpVector(float p_20215_, float p_20216_) protected final Vec3calculateViewVector(float p_20172_, float p_20173_) protected booleancanAddPassenger(Entity p_20354_) booleanbooleanbooleanbooleancanCollideWith(Entity p_20303_) booleanbooleanprotected booleanbooleanbooleanbooleancanTrample(BlockState state, BlockPos pos, float fallDistance) booleanvoidcanUpdate(boolean value) captureDrops(Collection<ItemEntity> value) booleancauseFallDamage(float p_146828_, float p_146829_, DamageSource p_146830_) changeDimension(ServerLevel p_20118_) changeDimension(ServerLevel p_20118_, ITeleporter teleporter) voidvoidprotected voidcheckFallDamage(double p_19911_, boolean p_19912_, BlockState p_19913_, BlockPos p_19914_) protected voidvoidprotected voidcheckSupportingBlock(boolean p_289694_, Vec3 p_289680_) voidbooleancloserThan(Entity p_19951_, double p_19952_) booleancloserThan(Entity p_216993_, double p_216994_, double p_216995_) private Vec3static Vec3collideBoundingBox(Entity p_198895_, Vec3 p_198896_, AABB p_198897_, Level p_198898_, List<VoxelShape> p_198899_) private static Vec3collideWithShapes(Vec3 p_198901_, AABB p_198902_, List<VoxelShape> p_198903_) voidcopyPosition(Entity p_20360_) protected booleanDeprecated.protected HoverEventbooleanprotected abstract voidfinal voiddiscard()booleanvoiddismountTo(double p_146825_, double p_146826_, double p_146827_) booleanfloatdistanceTo(Entity p_20271_) doubledistanceToSqr(double p_20276_, double p_20277_, double p_20278_) doubledistanceToSqr(Entity p_20281_) doubledistanceToSqr(Vec3 p_20239_) voiddoEnchantDamageEffects(LivingEntity p_19971_, Entity p_19972_) protected voidvoidbooleanvoidvoidfillCrashReportCategory(CrashReportCategory p_20051_) protected PortalInfofindDimensionEntryPoint(ServerLevel p_19923_) booleanprotected voidDeprecated.voidvoidintfinal floatfinal floatfloatgetBlockExplosionResistance(Explosion p_19992_, BlockGetter p_19993_, BlockPos p_19994_, BlockState p_19995_, FluidState p_19996_, float p_19997_) protected floatprotected BlockPosprotected floatprotected BlockStateDeprecated.final intfinal intfinal intfinal AABBprotected static Vec3getCollisionHorizontalEscapeVector(double p_19904_, double p_19905_, float p_19906_) intgetDimensions(Pose p_19975_) getDimensionsForge(Pose pose) Deprecated, for removal: This API element is subject to removal in a future version.getDismountLocationForPassenger(LivingEntity p_20123_) final Stringprotected Optional<BlockUtil.FoundRectangle>getExitPortal(ServerLevel p_185935_, BlockPos p_185936_, boolean p_185937_, WorldBorder p_185938_) final floatfloatgetEyeHeight(Pose p_20237_) protected floatgetEyeHeight(Pose p_19976_, EntityDimensions p_19977_) floatgetEyeHeightAccess(Pose pose, EntityDimensions size) Deprecated, for removal: This API element is subject to removal in a future version.final FluidTypeReturns the fluid that is on the entity's eyes.final Vec3final Vec3getEyePosition(float p_20300_) doublegetEyeY()protected intdoublegetFluidHeight(TagKey<Fluid> p_204037_) Deprecated.doublefinal doublegetFluidTypeHeight(FluidType type) Returns the height of the fluid type in relation to the bounding box of the entity.getHandHoldingItemAngle(Item p_204035_) intgetId()private static Vec3getInputVector(Vec3 p_20016_, float p_20017_, float p_20018_) protected Vec3getLeashOffset(float p_249286_) floatDeprecated.getLightProbePosition(float p_20309_) intintReturns the fluid type which is the highest on the bounding box of the entity.protected Entity.MovementEmissionfloatgetMyRidingOffset(Entity p_299721_) getName()floatgetOnPos()protected BlockPosgetOnPos(float p_216987_) Deprecated.protected org.joml.Vector3fgetPassengerAttachmentPoint(Entity p_297569_, EntityDimensions p_297882_, float p_300288_) getPassengerRidingPosition(Entity p_297660_) floatprotected intReturns a NBTTagCompound that can be used to store custom data for this entity.floatintintgetPose()final Vec3getPosition(float p_20319_) protected BlockPosgetPrimaryStepSoundBlockPos(BlockPos p_278049_) doublegetRandomX(double p_20209_) doubledoublegetRandomZ(double p_20263_) protected Vec3getRelativePortalPosition(Direction.Axis p_20045_, BlockUtil.FoundRectangle p_20046_) intgetRopeHoldPosition(float p_20347_) protected booleangetSharedFlag(int p_20292_) getSlot(int p_146919_) protected SoundEventprotected SoundEventprotected SoundEventgetTags()getTeam()intintintEntityType<?>getType()protected Componentfinal Vec3getUpVector(float p_20290_) getUUID()static doublefinal Vec3getViewVector(float p_20253_) floatgetViewXRot(float p_20268_) floatgetViewYRot(float p_20279_) floatfinal doublegetX()doublegetX(double p_20166_) floatgetXRot()final doublegetY()doublegetY(double p_20228_) floatfloatgetYRot()final doublegetZ()doublegetZ(double p_20247_) voidhandleDamageEvent(DamageSource p_270704_) voidhandleEntityEvent(byte p_19882_) voidhandleInsidePortal(BlockPos p_20222_) protected voidfinal booleanbooleanbooleanfinal booleaninthashCode()booleanhasIndirectPassenger(Entity p_20368_) booleanhasPassenger(Predicate<Entity> p_146863_) booleanhasPassenger(Entity p_20364_) booleanhasPermissions(int p_20311_) booleanbooleanhurt(DamageSource p_19946_, float p_19947_) booleaninteract(Player p_19978_, InteractionHand p_19979_) interactAt(Player p_19980_, Vec3 p_19981_, InteractionHand p_19982_) booleanfinal booleanGets whether this entity has been added to a world (for tracking).booleanisAlive()booleanisAlliedTo(Entity p_20355_) booleanisAlliedTo(Team p_20032_) booleanbooleanbooleanisColliding(BlockPos p_20040_, BlockState p_20041_) booleanbooleanbooleanbooleanbooleanbooleanbooleanbooleanisEyeInFluid(TagKey<Fluid> p_204030_) Deprecated.protected booleanbooleanisFree(double p_20230_, double p_20231_, double p_20232_) private booleanbooleanbooleanprotected booleanisHorizontalCollisionMinor(Vec3 p_196625_) booleanprivate booleanfinal booleanReturns whether the entity is in a fluid.final booleanisInFluidType(BiPredicate<FluidType, Double> predicate, boolean forAllTypes) Returns whether the fluid type the entity is currently in matches the specified condition.booleanisInLava()booleanprivate booleanisInRain()booleanbooleanisInvisibleTo(Player p_20178_) booleanbooleanisInvulnerableTo(DamageSource p_20122_) booleanisInWall()booleanbooleanbooleanbooleanbooleanbooleanisOnFire()booleanbooleanbooleanbooleanisPassengerOfSameVehicle(Entity p_20366_) booleanbooleanbooleanDeprecated.final booleanbooleanbooleanisSilent()booleanbooleanprivate booleanisStateClimbable(BlockState p_286733_) booleanbooleanisSupportedBy(BlockPos p_287613_) booleanbooleanbooleanbooleanbooleanbooleanvoidkill()booleankilledEntity(ServerLevel p_216988_, LivingEntity p_216989_) voidlavaHurt()voidlerpHeadTo(float p_19918_, int p_19919_) voidlerpMotion(double p_20306_, double p_20307_, double p_20308_) protected voidlerpPositionAndRotationStep(int p_298722_, double p_297490_, double p_300716_, double p_298684_, double p_300659_, double p_298926_) doublefloatdoublefloatdoublevoidlerpTo(double p_19896_, double p_19897_, double p_19898_, float p_19899_, float p_19900_, int p_19901_) level()protected Vec3limitPistonMovement(Vec3 p_20134_) voidload(CompoundTag p_20259_) voidlookAt(EntityAnchorArgument.Anchor p_20033_, Vec3 p_20034_) protected AABBvoidmakeStuckInBlock(BlockState p_20006_, Vec3 p_20007_) protected voidmarkHurt()floatDeprecated.protected Vec3maybeBackOffFromEdge(Vec3 p_20019_, MoverType p_20020_) booleanmayInteract(Level p_146843_, BlockPos p_146844_) floatvoidvoidmoveRelative(float p_19921_, Vec3 p_19922_) voidmoveTo(double p_20105_, double p_20106_, double p_20107_) voidmoveTo(double p_20108_, double p_20109_, double p_20110_, float p_20111_, float p_20112_) voidvoidprotected voidmoveTowardsClosestSpace(double p_20315_, double p_20316_, double p_20317_) protected ListTagnewDoubleList(double... p_20064_) protected ListTagnewFloatList(float... p_20066_) protected floatnextStep()voidonAboveBubbleCol(boolean p_20313_) voidCalled after the entity has been added to the world's ticking list.protected voidvoidprotected voidonFlap()booleanonGround()protected voidonInsideBlock(BlockState p_20005_) voidonInsideBubbleColumn(boolean p_20322_) booleanvoidonPassengerTurned(Entity p_20320_) voidCalled after the entity has been removed to the world's ticking list.voidonSyncedDataUpdated(List<SynchedEntityData.DataValue<?>> p_270372_) voidonSyncedDataUpdated(EntityDataAccessor<?> p_20059_) pick(double p_19908_, float p_19909_, boolean p_19910_) private voidprotected voidplayCombinationStepSounds(BlockState p_277472_, BlockState p_277630_, BlockPos primaryPos, BlockPos secondaryPos) protected voidvoidplayerTouch(Player p_20081_) protected voidplayMuffledStepSound(BlockState p_283110_, BlockPos pos) voidplaySound(SoundEvent p_216991_) voidplaySound(SoundEvent p_19938_, float p_19939_, float p_19940_) protected voidplayStepSound(BlockPos p_20135_, BlockState p_20136_) protected voidplaySwimSound(float p_20213_) position()final voidpositionRider(Entity p_20312_) protected voidpositionRider(Entity p_19957_, Entity.MoveFunction p_19958_) protected voidprotected voidvoidpush(double p_20286_, double p_20287_, double p_20288_) voidprotected abstract voidreadAdditionalSaveData(CompoundTag p_20052_) protected voidvoidrecreateFromPacket(ClientboundAddEntityPacket p_146866_) voidvoidremove(Entity.RemovalReason p_146834_) private static ComponentremoveAction(Component p_20141_) protected voidprotected voidremovePassenger(Entity p_20352_) booleanvoidprotected booleanvoidvoidrestoreFrom(Entity p_20362_) voidrevive()Revives an entity that has been removed from a world.voidrideTick()protected floatridingOffset(Entity p_301274_) floatbooleansave(CompoundTag p_20224_) booleansaveAsPassenger(CompoundTag p_20087_) saveWithoutId(CompoundTag p_20241_) voidsendSystemMessage(Component p_216998_) voidsetAirSupply(int p_20302_) final voidsetBoundingBox(AABB p_20012_) voidsetCustomName(Component p_20053_) voidsetCustomNameVisible(boolean p_20341_) voidsetDeltaMovement(double p_20335_, double p_20336_, double p_20337_) voidsetDeltaMovement(Vec3 p_20257_) protected final voidsetFluidTypeHeight(FluidType type, double height) final voidsetGlowingTag(boolean p_146916_) voidsetId(int p_20235_) voidsetInvisible(boolean p_20304_) voidsetInvulnerable(boolean p_20332_) voidsetIsInPowderSnow(boolean p_146925_) voidsetItemSlot(EquipmentSlot p_19968_, ItemStack p_19969_) protected voidvoidsetLevelCallback(EntityInLevelCallback p_146849_) voidsetMaxUpStep(float p_275672_) voidsetNoGravity(boolean p_20243_) final voidvoidsetOnGround(boolean p_20181_) voidsetOnGroundWithKnownMovement(boolean p_289661_, Vec3 p_289653_) voidvoidsetPortalCooldown(int p_287760_) voidsetPos(double p_20210_, double p_20211_, double p_20212_) final voidvoidfinal voidsetPosRaw(double p_20344_, double p_20345_, double p_20346_) voidsetRemainingFireTicks(int p_20269_) final voidsetRemoved(Entity.RemovalReason p_146876_) protected voidsetRot(float p_19916_, float p_19917_) voidsetSecondsOnFire(int p_20255_) protected voidsetSharedFlag(int p_20116_, boolean p_20117_) voidsetSharedFlagOnFire(boolean p_146869_) voidsetShiftKeyDown(boolean p_20261_) voidsetSilent(boolean p_20226_) voidsetSprinting(boolean p_20274_) voidsetSwimming(boolean p_20283_) voidsetTicksFrozen(int p_146918_) voidstatic voidsetViewScale(double p_20104_) voidsetXRot(float p_146927_) voidsetYBodyRot(float p_20338_) voidsetYHeadRot(float p_20328_) voidsetYRot(float p_146923_) booleanbooleanshouldBlockExplode(Explosion p_19987_, BlockGetter p_19988_, BlockPos p_19989_, BlockState p_19990_, float p_19991_) booleanprivate booleanshouldPlayAmethystStepSound(BlockState p_278069_) booleanshouldRender(double p_20296_, double p_20297_, double p_20298_) booleanshouldRenderAtSqrDistance(double p_19883_) booleanbooleanbooleanskipAttackInteraction(Entity p_20357_) spawnAtLocation(ItemStack p_19984_) spawnAtLocation(ItemStack p_19985_, float p_19986_) spawnAtLocation(ItemLike p_19999_) spawnAtLocation(ItemLike p_20001_, int p_20002_) protected voidbooleanstartRiding(Entity p_20330_) booleanstartRiding(Entity p_19966_, boolean p_19967_) voidstartSeenByPlayer(ServerPlayer p_20119_) voidvoidstopSeenByPlayer(ServerPlayer p_20174_) voidsyncPacketPositionCodec(double p_217007_, double p_217008_, double p_217009_) private voidvoidteleportRelative(double p_249341_, double p_252229_, double p_252038_) voidteleportTo(double p_19887_, double p_19888_, double p_19889_) booleanteleportTo(ServerLevel p_265257_, double p_265407_, double p_265727_, double p_265410_, Set<RelativeMovement> p_265083_, float p_265573_, float p_265094_) final voidteleportToWithTicket(double p_20325_, double p_20326_, double p_20327_) voidthunderHit(ServerLevel p_19927_, LightningBolt p_19928_) voidtick()toString()booleanprotected voidvoidturn(double p_19885_, double p_19886_) final voidunRide()protected voidvoidvoidDeprecated, for removal: This API element is subject to removal in a future version.voidupdateFluidHeightAndDoFluidPushing(Predicate<FluidState> shouldUpdate) booleanupdateFluidHeightAndDoFluidPushing(TagKey<Fluid> p_204032_, double p_204033_) Deprecated.private voidprotected boolean(package private) voidvoidprivate booleanvibrationAndSoundEffectsFromBlock(BlockPos p_286221_, BlockState p_286549_, boolean p_286708_, boolean p_286543_, Vec3 p_286448_) private voidwalkingStepSound(BlockPos p_281828_, BlockState p_282118_) protected voidMethods inherited from class net.minecraftforge.common.capabilities.CapabilityProviderareCapsCompatible, areCapsCompatible, deserializeCaps, gatherCapabilities, gatherCapabilities, gatherCapabilities, getCapabilities, getCapability, invalidateCaps, reviveCaps, serializeCapsMethods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.commands.CommandSourcealwaysAcceptsMethods inherited from interface net.minecraftforge.common.capabilities.ICapabilityProvidergetCapability, getCapabilityMethods inherited from interface net.minecraftforge.common.extensions.IForgeEntitycanBeRiddenUnderFluidType, canFluidExtinguish, canHydrateInFluidType, canRiderInteract, canStartSwimming, canSwimInFluidType, deserializeNBT, getClassification, getEyeHeightForge, getFluidFallDistanceModifier, getFluidMotionScale, getParts, getPickedResult, getSoundFromFluidType, getStepHeight, hasCustomOutlineRendering, isEyeInFluidType, isInFluidType, isInFluidType, isInFluidType, isMultipartEntity, isPushedByFluid, serializeNBT, shouldRiderSit, shouldUpdateFluidWhileBoating
- 
Field Details- 
LOGGERprivate static final org.slf4j.Logger LOGGER
- 
ID_TAG- See Also:
 
- 
PASSENGERS_TAG- See Also:
 
- 
ENTITY_COUNTER
- 
EMPTY_LIST
- 
BOARDING_COOLDOWNpublic static final int BOARDING_COOLDOWN- See Also:
 
- 
TOTAL_AIR_SUPPLYpublic static final int TOTAL_AIR_SUPPLY- See Also:
 
- 
MAX_ENTITY_TAG_COUNTpublic static final int MAX_ENTITY_TAG_COUNT- See Also:
 
- 
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2public static final float DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2- See Also:
 
- 
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5public static final double DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5- See Also:
 
- 
DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0public static final double DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0- See Also:
 
- 
BREATHING_DISTANCE_BELOW_EYESpublic static final float BREATHING_DISTANCE_BELOW_EYES- See Also:
 
- 
BASE_TICKS_REQUIRED_TO_FREEZEpublic static final int BASE_TICKS_REQUIRED_TO_FREEZE- See Also:
 
- 
FREEZE_HURT_FREQUENCYpublic static final int FREEZE_HURT_FREQUENCY- See Also:
 
- 
INITIAL_AABB
- 
WATER_FLOW_SCALEprivate static final double WATER_FLOW_SCALE- See Also:
 
- 
LAVA_FAST_FLOW_SCALEprivate static final double LAVA_FAST_FLOW_SCALE- See Also:
 
- 
LAVA_SLOW_FLOW_SCALEprivate static final double LAVA_SLOW_FLOW_SCALE- See Also:
 
- 
UUID_TAG- See Also:
 
- 
viewScaleprivate static double viewScale
- 
typeDeprecated.
- 
idprivate int id
- 
blocksBuildingpublic boolean blocksBuilding
- 
passengers
- 
boardingCooldownprotected int boardingCooldown
- 
vehicle
- 
level
- 
xopublic double xo
- 
yopublic double yo
- 
zopublic double zo
- 
position
- 
blockPosition
- 
chunkPosition
- 
deltaMovement
- 
yRotprivate float yRot
- 
xRotprivate float xRot
- 
yRotOpublic float yRotO
- 
xRotOpublic float xRotO
- 
bb
- 
onGroundprivate boolean onGround
- 
horizontalCollisionpublic boolean horizontalCollision
- 
verticalCollisionpublic boolean verticalCollision
- 
verticalCollisionBelowpublic boolean verticalCollisionBelow
- 
minorHorizontalCollisionpublic boolean minorHorizontalCollision
- 
hurtMarkedpublic boolean hurtMarked
- 
stuckSpeedMultiplier
- 
removalReason
- 
DEFAULT_BB_WIDTHpublic static final float DEFAULT_BB_WIDTH- See Also:
 
- 
DEFAULT_BB_HEIGHTpublic static final float DEFAULT_BB_HEIGHT- See Also:
 
- 
walkDistOpublic float walkDistO
- 
walkDistpublic float walkDist
- 
moveDistpublic float moveDist
- 
flyDistpublic float flyDist
- 
fallDistancepublic float fallDistance
- 
nextStepprivate float nextStep
- 
xOldpublic double xOld
- 
yOldpublic double yOld
- 
zOldpublic double zOld
- 
maxUpStepprivate float maxUpStep
- 
noPhysicspublic boolean noPhysics
- 
random
- 
tickCountpublic int tickCount
- 
remainingFireTicksprivate int remainingFireTicks
- 
wasTouchingWaterprotected boolean wasTouchingWater
- 
fluidHeightDeprecated.
- 
wasEyeInWaterprotected boolean wasEyeInWater
- 
fluidOnEyesDeprecated.
- 
invulnerableTimepublic int invulnerableTime
- 
firstTickprotected boolean firstTick
- 
entityData
- 
DATA_SHARED_FLAGS_ID
- 
FLAG_ONFIREprotected static final int FLAG_ONFIRE- See Also:
 
- 
FLAG_SHIFT_KEY_DOWNprivate static final int FLAG_SHIFT_KEY_DOWN- See Also:
 
- 
FLAG_SPRINTINGprivate static final int FLAG_SPRINTING- See Also:
 
- 
FLAG_SWIMMINGprivate static final int FLAG_SWIMMING- See Also:
 
- 
FLAG_INVISIBLEprivate static final int FLAG_INVISIBLE- See Also:
 
- 
FLAG_GLOWINGprotected static final int FLAG_GLOWING- See Also:
 
- 
FLAG_FALL_FLYINGprotected static final int FLAG_FALL_FLYING- See Also:
 
- 
DATA_AIR_SUPPLY_ID
- 
DATA_CUSTOM_NAME
- 
DATA_CUSTOM_NAME_VISIBLE
- 
DATA_SILENT
- 
DATA_NO_GRAVITY
- 
DATA_POSE
- 
DATA_TICKS_FROZEN
- 
levelCallback
- 
packetPositionCodec
- 
noCullingpublic boolean noCulling
- 
hasImpulsepublic boolean hasImpulse
- 
portalCooldownprivate int portalCooldown
- 
isInsidePortalprotected boolean isInsidePortal
- 
portalTimeprotected int portalTime
- 
portalEntrancePos
- 
invulnerableprivate boolean invulnerable
- 
uuid
- 
stringUUID
- 
hasGlowingTagprivate boolean hasGlowingTag
- 
tags
- 
pistonDeltasprivate final double[] pistonDeltas
- 
pistonDeltasGameTimeprivate long pistonDeltasGameTime
- 
dimensions
- 
eyeHeightprivate float eyeHeight
- 
isInPowderSnowpublic boolean isInPowderSnow
- 
wasInPowderSnowpublic boolean wasInPowderSnow
- 
wasOnFirepublic boolean wasOnFire
- 
mainSupportingBlockPos
- 
onGroundNoBlocksprivate boolean onGroundNoBlocks
- 
crystalSoundIntensityprivate float crystalSoundIntensity
- 
lastCrystalSoundPlayTickprivate int lastCrystalSoundPlayTick
- 
hasVisualFireprivate boolean hasVisualFire
- 
feetBlockState
- 
hasExtraSpawnDataprivate boolean hasExtraSpawnData
- 
canUpdateprivate boolean canUpdate
- 
captureDrops
- 
persistentData
- 
isAddedToWorldprivate boolean isAddedToWorldInternal use for keeping track of entities that are tracked by a world, to allow guarantees that entity position changes will force a chunk load, avoiding potential issues with entity desyncing and bad chunk data.
- 
forgeFluidTypeHeight
- 
forgeFluidTypeOnEyes
 
- 
- 
Constructor Details- 
Entity
 
- 
- 
Method Details- 
isColliding
- 
getTeamColorpublic int getTeamColor()
- 
isSpectatorpublic boolean isSpectator()
- 
unRidepublic final void unRide()
- 
syncPacketPositionCodecpublic void syncPacketPositionCodec(double p_217007_, double p_217008_, double p_217009_) 
- 
getPositionCodec
- 
getType
- 
getIdpublic int getId()- Specified by:
- getIdin interface- EntityAccess
 
- 
setIdpublic void setId(int p_20235_) 
- 
getTags
- 
addTag
- 
removeTag
- 
killpublic void kill()
- 
discardpublic final void discard()
- 
defineSynchedDataprotected abstract void defineSynchedData()
- 
getEntityData
- 
equals
- 
hashCodepublic int hashCode()
- 
remove
- 
onClientRemovalpublic void onClientRemoval()
- 
setPose
- 
getPose
- 
hasPose
- 
closerThan
- 
closerThan
- 
setRotprotected void setRot(float p_19916_, float p_19917_) 
- 
setPos
- 
setPospublic void setPos(double p_20210_, double p_20211_, double p_20212_) 
- 
makeBoundingBox
- 
reapplyPositionprotected void reapplyPosition()
- 
turnpublic void turn(double p_19885_, double p_19886_) 
- 
tickpublic void tick()
- 
baseTickpublic void baseTick()
- 
checkBelowWorldpublic void checkBelowWorld()
- 
setPortalCooldownpublic void setPortalCooldown()
- 
setPortalCooldownpublic void setPortalCooldown(int p_287760_) 
- 
getPortalCooldownpublic int getPortalCooldown()
- 
isOnPortalCooldownpublic boolean isOnPortalCooldown()
- 
processPortalCooldownprotected void processPortalCooldown()
- 
getPortalWaitTimepublic int getPortalWaitTime()
- 
lavaHurtpublic void lavaHurt()
- 
setSecondsOnFirepublic void setSecondsOnFire(int p_20255_) 
- 
setRemainingFireTickspublic void setRemainingFireTicks(int p_20269_) 
- 
getRemainingFireTickspublic int getRemainingFireTicks()
- 
clearFirepublic void clearFire()
- 
onBelowWorldprotected void onBelowWorld()
- 
isFreepublic boolean isFree(double p_20230_, double p_20231_, double p_20232_) 
- 
isFree
- 
setOnGroundpublic void setOnGround(boolean p_20181_) 
- 
setOnGroundWithKnownMovement
- 
isSupportedBy
- 
checkSupportingBlock
- 
onGroundpublic boolean onGround()
- 
move
- 
isStateClimbable
- 
vibrationAndSoundEffectsFromBlockprivate boolean vibrationAndSoundEffectsFromBlock(BlockPos p_286221_, BlockState p_286549_, boolean p_286708_, boolean p_286543_, Vec3 p_286448_) 
- 
isHorizontalCollisionMinor
- 
tryCheckInsideBlocksprotected void tryCheckInsideBlocks()
- 
playEntityOnFireExtinguishedSoundprotected void playEntityOnFireExtinguishedSound()
- 
extinguishFirepublic void extinguishFire()
- 
processFlappingMovementprotected void processFlappingMovement()
- 
getOnPosLegacyDeprecated.
- 
getBlockPosBelowThatAffectsMyMovement
- 
getOnPos
- 
getOnPos
- 
getBlockJumpFactorprotected float getBlockJumpFactor()
- 
getBlockSpeedFactorprotected float getBlockSpeedFactor()
- 
maybeBackOffFromEdge
- 
limitPistonMovement
- 
applyPistonMovementRestriction
- 
collide
- 
collideBoundingBox
- 
collideWithShapes
- 
nextStepprotected float nextStep()
- 
getSwimSound
- 
getSwimSplashSound
- 
getSwimHighSpeedSplashSound
- 
checkInsideBlocksprotected void checkInsideBlocks()
- 
onInsideBlock
- 
gameEvent
- 
gameEvent
- 
walkingStepSound
- 
waterSwimSoundprotected void waterSwimSound()
- 
getPrimaryStepSoundBlockPos
- 
playCombinationStepSoundsprotected void playCombinationStepSounds(BlockState p_277472_, BlockState p_277630_, BlockPos primaryPos, BlockPos secondaryPos) 
- 
playMuffledStepSound
- 
playStepSound
- 
shouldPlayAmethystStepSound
- 
playAmethystStepSoundprivate void playAmethystStepSound()
- 
playSwimSoundprotected void playSwimSound(float p_20213_) 
- 
onFlapprotected void onFlap()
- 
isFlappingprotected boolean isFlapping()
- 
playSound
- 
playSound
- 
isSilentpublic boolean isSilent()
- 
setSilentpublic void setSilent(boolean p_20226_) 
- 
isNoGravitypublic boolean isNoGravity()
- 
setNoGravitypublic void setNoGravity(boolean p_20243_) 
- 
getMovementEmission
- 
dampensVibrationspublic boolean dampensVibrations()
- 
checkFallDamageprotected void checkFallDamage(double p_19911_, boolean p_19912_, BlockState p_19913_, BlockPos p_19914_) 
- 
fireImmunepublic boolean fireImmune()
- 
causeFallDamage
- 
isInWaterpublic boolean isInWater()
- 
isInRainprivate boolean isInRain()
- 
isInBubbleColumnprivate boolean isInBubbleColumn()
- 
isInWaterOrRainpublic boolean isInWaterOrRain()
- 
isInWaterRainOrBubblepublic boolean isInWaterRainOrBubble()
- 
isInWaterOrBubblepublic boolean isInWaterOrBubble()
- 
isInLiquidpublic boolean isInLiquid()
- 
isUnderWaterpublic boolean isUnderWater()
- 
updateSwimmingpublic void updateSwimming()
- 
updateInWaterStateAndDoFluidPushingprotected boolean updateInWaterStateAndDoFluidPushing()
- 
updateInWaterStateAndDoWaterCurrentPushingvoid updateInWaterStateAndDoWaterCurrentPushing()
- 
updateFluidOnEyesprivate void updateFluidOnEyes()
- 
doWaterSplashEffectprotected void doWaterSplashEffect()
- 
getBlockStateOnLegacyDeprecated.
- 
getBlockStateOn
- 
canSpawnSprintParticlepublic boolean canSpawnSprintParticle()
- 
spawnSprintParticleprotected void spawnSprintParticle()
- 
isEyeInFluidDeprecated.
- 
isInLavapublic boolean isInLava()
- 
moveRelative
- 
getInputVector
- 
getLightLevelDependentMagicValueDeprecated.
- 
absMoveTopublic void absMoveTo(double p_19891_, double p_19892_, double p_19893_, float p_19894_, float p_19895_) 
- 
absMoveTopublic void absMoveTo(double p_20249_, double p_20250_, double p_20251_) 
- 
moveTo
- 
moveTopublic void moveTo(double p_20105_, double p_20106_, double p_20107_) 
- 
moveTo
- 
moveTopublic void moveTo(double p_20108_, double p_20109_, double p_20110_, float p_20111_, float p_20112_) 
- 
setOldPosAndRotpublic final void setOldPosAndRot()
- 
distanceTo
- 
distanceToSqrpublic double distanceToSqr(double p_20276_, double p_20277_, double p_20278_) 
- 
distanceToSqr
- 
distanceToSqr
- 
playerTouch
- 
push
- 
pushpublic void push(double p_20286_, double p_20287_, double p_20288_) 
- 
markHurtprotected void markHurt()
- 
hurt
- 
getViewVector
- 
getViewXRotpublic float getViewXRot(float p_20268_) 
- 
getViewYRotpublic float getViewYRot(float p_20279_) 
- 
calculateViewVector
- 
getUpVector
- 
calculateUpVector
- 
getEyePosition
- 
getEyePosition
- 
getLightProbePosition
- 
getPosition
- 
pick
- 
canBeHitByProjectilepublic boolean canBeHitByProjectile()
- 
isPickablepublic boolean isPickable()
- 
isPushablepublic boolean isPushable()
- 
awardKillScore
- 
shouldRenderpublic boolean shouldRender(double p_20296_, double p_20297_, double p_20298_) 
- 
shouldRenderAtSqrDistancepublic boolean shouldRenderAtSqrDistance(double p_19883_) 
- 
saveAsPassenger
- 
save
- 
saveWithoutId
- 
load
- 
repositionEntityAfterLoadprotected boolean repositionEntityAfterLoad()
- 
getEncodeId
- 
readAdditionalSaveData
- 
addAdditionalSaveData
- 
newDoubleList
- 
newFloatList
- 
spawnAtLocation
- 
spawnAtLocation
- 
spawnAtLocation
- 
spawnAtLocation
- 
isAlivepublic boolean isAlive()
- 
isInWallpublic boolean isInWall()
- 
interact
- 
canCollideWith
- 
canBeCollidedWithpublic boolean canBeCollidedWith()
- 
rideTickpublic void rideTick()
- 
positionRider
- 
positionRider
- 
onPassengerTurned
- 
getMyRidingOffset
- 
ridingOffset
- 
getPassengerRidingPosition
- 
getPassengerAttachmentPointprotected org.joml.Vector3f getPassengerAttachmentPoint(Entity p_297569_, EntityDimensions p_297882_, float p_300288_) 
- 
startRiding
- 
showVehicleHealthpublic boolean showVehicleHealth()
- 
startRiding
- 
canRide
- 
ejectPassengerspublic void ejectPassengers()
- 
removeVehiclepublic void removeVehicle()
- 
stopRidingpublic void stopRiding()
- 
addPassenger
- 
removePassenger
- 
canAddPassenger
- 
couldAcceptPassengerDeprecated.Forge: Userider sensitive version
- 
lerpTopublic void lerpTo(double p_19896_, double p_19897_, double p_19898_, float p_19899_, float p_19900_, int p_19901_) 
- 
lerpTargetXpublic double lerpTargetX()
- 
lerpTargetYpublic double lerpTargetY()
- 
lerpTargetZpublic double lerpTargetZ()
- 
lerpTargetXRotpublic float lerpTargetXRot()
- 
lerpTargetYRotpublic float lerpTargetYRot()
- 
lerpHeadTopublic void lerpHeadTo(float p_19918_, int p_19919_) 
- 
getPickRadiuspublic float getPickRadius()
- 
getLookAngle
- 
getHandHoldingItemAngle
- 
getRotationVector
- 
getForward
- 
handleInsidePortal
- 
handleNetherPortalprotected void handleNetherPortal()
- 
getDimensionChangingDelaypublic int getDimensionChangingDelay()
- 
lerpMotionpublic void lerpMotion(double p_20306_, double p_20307_, double p_20308_) 
- 
handleDamageEvent
- 
handleEntityEventpublic void handleEntityEvent(byte p_19882_) 
- 
animateHurtpublic void animateHurt(float p_265161_) 
- 
getHandSlots
- 
getArmorSlots
- 
getAllSlots
- 
setItemSlot
- 
isOnFirepublic boolean isOnFire()
- 
isPassengerpublic boolean isPassenger()
- 
isVehiclepublic boolean isVehicle()
- 
dismountsUnderwaterpublic boolean dismountsUnderwater()
- 
canControlVehiclepublic boolean canControlVehicle()
- 
setShiftKeyDownpublic void setShiftKeyDown(boolean p_20261_) 
- 
isShiftKeyDownpublic boolean isShiftKeyDown()
- 
isSteppingCarefullypublic boolean isSteppingCarefully()
- 
isSuppressingBouncepublic boolean isSuppressingBounce()
- 
isDiscretepublic boolean isDiscrete()
- 
isDescendingpublic boolean isDescending()
- 
isCrouchingpublic boolean isCrouching()
- 
isSprintingpublic boolean isSprinting()
- 
setSprintingpublic void setSprinting(boolean p_20274_) 
- 
isSwimmingpublic boolean isSwimming()
- 
isVisuallySwimmingpublic boolean isVisuallySwimming()
- 
isVisuallyCrawlingpublic boolean isVisuallyCrawling()
- 
setSwimmingpublic void setSwimming(boolean p_20283_) 
- 
hasGlowingTagpublic final boolean hasGlowingTag()
- 
setGlowingTagpublic final void setGlowingTag(boolean p_146916_) 
- 
isCurrentlyGlowingpublic boolean isCurrentlyGlowing()
- 
isInvisiblepublic boolean isInvisible()
- 
isInvisibleTo
- 
isOnRailspublic boolean isOnRails()
- 
updateDynamicGameEventListenerpublic void updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> p_216996_) 
- 
getTeam
- 
isAlliedTo
- 
isAlliedTo
- 
setInvisiblepublic void setInvisible(boolean p_20304_) 
- 
getMaxAirSupplypublic int getMaxAirSupply()
- 
getAirSupplypublic int getAirSupply()
- 
setAirSupplypublic void setAirSupply(int p_20302_) 
- 
getTicksFrozenpublic int getTicksFrozen()
- 
setTicksFrozenpublic void setTicksFrozen(int p_146918_) 
- 
getPercentFrozenpublic float getPercentFrozen()
- 
isFullyFrozenpublic boolean isFullyFrozen()
- 
getTicksRequiredToFreezepublic int getTicksRequiredToFreeze()
- 
thunderHit
- 
onAboveBubbleColpublic void onAboveBubbleCol(boolean p_20313_) 
- 
onInsideBubbleColumnpublic void onInsideBubbleColumn(boolean p_20322_) 
- 
killedEntity
- 
checkSlowFallDistancepublic void checkSlowFallDistance()
- 
resetFallDistancepublic void resetFallDistance()
- 
moveTowardsClosestSpaceprotected void moveTowardsClosestSpace(double p_20315_, double p_20316_, double p_20317_) 
- 
makeStuckInBlock
- 
removeAction
- 
getName
- 
getTypeName
- 
is
- 
getYHeadRotpublic float getYHeadRot()
- 
setYHeadRotpublic void setYHeadRot(float p_20328_) 
- 
setYBodyRotpublic void setYBodyRot(float p_20338_) 
- 
isAttackablepublic boolean isAttackable()
- 
skipAttackInteraction
- 
toString
- 
isInvulnerableTo
- 
isInvulnerablepublic boolean isInvulnerable()
- 
setInvulnerablepublic void setInvulnerable(boolean p_20332_) 
- 
copyPosition
- 
restoreFrom
- 
changeDimension
- 
changeDimension
- 
removeAfterChangingDimensionsprotected void removeAfterChangingDimensions()
- 
findDimensionEntryPoint
- 
getRelativePortalPositionprotected Vec3 getRelativePortalPosition(Direction.Axis p_20045_, BlockUtil.FoundRectangle p_20046_) 
- 
getExitPortalprotected Optional<BlockUtil.FoundRectangle> getExitPortal(ServerLevel p_185935_, BlockPos p_185936_, boolean p_185937_, WorldBorder p_185938_) 
- 
canChangeDimensionspublic boolean canChangeDimensions()
- 
getBlockExplosionResistancepublic float getBlockExplosionResistance(Explosion p_19992_, BlockGetter p_19993_, BlockPos p_19994_, BlockState p_19995_, FluidState p_19996_, float p_19997_) 
- 
shouldBlockExplodepublic boolean shouldBlockExplode(Explosion p_19987_, BlockGetter p_19988_, BlockPos p_19989_, BlockState p_19990_, float p_19991_) 
- 
getMaxFallDistancepublic int getMaxFallDistance()
- 
isIgnoringBlockTriggerspublic boolean isIgnoringBlockTriggers()
- 
fillCrashReportCategory
- 
displayFireAnimationpublic boolean displayFireAnimation()
- 
setUUID
- 
getUUID- Specified by:
- getUUIDin interface- EntityAccess
 
- 
getStringUUID
- 
getScoreboardName
- 
isPushedByFluidDeprecated.
- 
getViewScalepublic static double getViewScale()
- 
setViewScalepublic static void setViewScale(double p_20104_) 
- 
getDisplayName- Specified by:
- getDisplayNamein interface- Nameable
 
- 
setCustomName
- 
getCustomName- Specified by:
- getCustomNamein interface- Nameable
 
- 
hasCustomNamepublic boolean hasCustomName()- Specified by:
- hasCustomNamein interface- Nameable
 
- 
setCustomNameVisiblepublic void setCustomNameVisible(boolean p_20341_) 
- 
isCustomNameVisiblepublic boolean isCustomNameVisible()
- 
teleportToWithTicketpublic final void teleportToWithTicket(double p_20325_, double p_20326_, double p_20327_) 
- 
teleportTopublic boolean teleportTo(ServerLevel p_265257_, double p_265407_, double p_265727_, double p_265410_, Set<RelativeMovement> p_265083_, float p_265573_, float p_265094_) 
- 
dismountTopublic void dismountTo(double p_146825_, double p_146826_, double p_146827_) 
- 
teleportTopublic void teleportTo(double p_19887_, double p_19888_, double p_19889_) 
- 
teleportPassengersprivate void teleportPassengers()
- 
teleportRelativepublic void teleportRelative(double p_249341_, double p_252229_, double p_252038_) 
- 
shouldShowNamepublic boolean shouldShowName()
- 
onSyncedDataUpdated
- 
onSyncedDataUpdated
- 
fixupDimensionsDeprecated.
- 
refreshDimensionspublic void refreshDimensions()
- 
getDirection
- 
getMotionDirection
- 
createHoverEvent
- 
broadcastToPlayer
- 
getBoundingBox- Specified by:
- getBoundingBoxin interface- EntityAccess
 
- 
getBoundingBoxForCulling
- 
setBoundingBox
- 
getEyeHeight
- 
getEyeHeight
- 
getEyeHeightpublic final float getEyeHeight()
- 
getLeashOffset
- 
getLeashOffset
- 
getSlot
- 
sendSystemMessage- Specified by:
- sendSystemMessagein interface- CommandSource
 
- 
getCommandSenderWorld
- 
getServer
- 
interactAt
- 
ignoreExplosionpublic boolean ignoreExplosion()
- 
doEnchantDamageEffects
- 
startSeenByPlayer
- 
stopSeenByPlayer
- 
rotate
- 
mirror
- 
onlyOpCanSetNbtpublic boolean onlyOpCanSetNbt()
- 
getControllingPassenger
- 
hasControllingPassengerpublic final boolean hasControllingPassenger()
- 
getPassengers
- 
getFirstPassenger
- 
hasPassenger
- 
hasPassenger
- 
getIndirectPassengersStream
- 
getSelfAndPassengers- Specified by:
- getSelfAndPassengersin interface- EntityAccess
 
- 
getPassengersAndSelf- Specified by:
- getPassengersAndSelfin interface- EntityAccess
 
- 
getIndirectPassengers
- 
hasExactlyOnePlayerPassengerpublic boolean hasExactlyOnePlayerPassenger()
- 
getRootVehicle
- 
isPassengerOfSameVehicle
- 
hasIndirectPassenger
- 
isControlledByLocalInstancepublic boolean isControlledByLocalInstance()
- 
isEffectiveAipublic boolean isEffectiveAi()
- 
getCollisionHorizontalEscapeVectorprotected static Vec3 getCollisionHorizontalEscapeVector(double p_19904_, double p_19905_, float p_19906_) 
- 
getDismountLocationForPassenger
- 
getVehicle
- 
getControlledVehicle
- 
getPistonPushReaction
- 
getSoundSource
- 
getFireImmuneTicksprotected int getFireImmuneTicks()
- 
createCommandSourceStack
- 
getPermissionLevelprotected int getPermissionLevel()
- 
hasPermissionspublic boolean hasPermissions(int p_20311_) 
- 
acceptsSuccesspublic boolean acceptsSuccess()- Specified by:
- acceptsSuccessin interface- CommandSource
 
- 
acceptsFailurepublic boolean acceptsFailure()- Specified by:
- acceptsFailurein interface- CommandSource
 
- 
shouldInformAdminspublic boolean shouldInformAdmins()- Specified by:
- shouldInformAdminsin interface- CommandSource
 
- 
lookAt
- 
updateFluidHeightAndDoFluidPushing@Deprecated public boolean updateFluidHeightAndDoFluidPushing(TagKey<Fluid> p_204032_, double p_204033_) Deprecated.
- 
updateFluidHeightAndDoFluidPushingDeprecated, for removal: This API element is subject to removal in a future version.
- 
updateFluidHeightAndDoFluidPushing
- 
touchingUnloadedChunkpublic boolean touchingUnloadedChunk()
- 
getFluidHeightDeprecated.
- 
getFluidJumpThresholdpublic double getFluidJumpThreshold()
- 
getBbWidthpublic final float getBbWidth()
- 
getBbHeightpublic final float getBbHeight()
- 
getNameTagOffsetYpublic float getNameTagOffsetY()
- 
getAddEntityPacket
- 
getDimensions
- 
position
- 
trackingPosition
- 
blockPosition- Specified by:
- blockPositionin interface- EntityAccess
 
- 
getFeetBlockState
- 
chunkPosition
- 
getDeltaMovement
- 
setDeltaMovement
- 
addDeltaMovement
- 
setDeltaMovementpublic void setDeltaMovement(double p_20335_, double p_20336_, double p_20337_) 
- 
getBlockXpublic final int getBlockX()
- 
getXpublic final double getX()
- 
getXpublic double getX(double p_20166_) 
- 
getRandomXpublic double getRandomX(double p_20209_) 
- 
getBlockYpublic final int getBlockY()
- 
getYpublic final double getY()
- 
getYpublic double getY(double p_20228_) 
- 
getRandomYpublic double getRandomY()
- 
getEyeYpublic double getEyeY()
- 
getBlockZpublic final int getBlockZ()
- 
getZpublic final double getZ()
- 
getZpublic double getZ(double p_20247_) 
- 
getRandomZpublic double getRandomZ(double p_20263_) 
- 
setPosRawpublic final void setPosRaw(double p_20344_, double p_20345_, double p_20346_) 
- 
checkDespawnpublic void checkDespawn()
- 
getRopeHoldPosition
- 
recreateFromPacket
- 
getPickResult
- 
setIsInPowderSnowpublic void setIsInPowderSnow(boolean p_146925_) 
- 
canFreezepublic boolean canFreeze()
- 
isFreezingpublic boolean isFreezing()
- 
getYRotpublic float getYRot()
- 
getVisualRotationYInDegreespublic float getVisualRotationYInDegrees()
- 
setYRotpublic void setYRot(float p_146923_) 
- 
getXRotpublic float getXRot()
- 
setXRotpublic void setXRot(float p_146927_) 
- 
canSprintpublic boolean canSprint()
- 
maxUpStepDeprecated.
- 
setMaxUpSteppublic void setMaxUpStep(float p_275672_) 
- 
isRemovedpublic final boolean isRemoved()
- 
getRemovalReason
- 
setRemoved- Specified by:
- setRemovedin interface- EntityAccess
 
- 
unsetRemovedprotected void unsetRemoved()
- 
setLevelCallback- Specified by:
- setLevelCallbackin interface- EntityAccess
 
- 
shouldBeSavedpublic boolean shouldBeSaved()- Specified by:
- shouldBeSavedin interface- EntityAccess
 
- 
isAlwaysTickingpublic boolean isAlwaysTicking()- Specified by:
- isAlwaysTickingin interface- EntityAccess
 
- 
mayInteract
- 
canUpdatepublic void canUpdate(boolean value) - Specified by:
- canUpdatein interface- IForgeEntity
 
- 
canUpdatepublic boolean canUpdate()- Specified by:
- canUpdatein interface- IForgeEntity
 
- 
captureDrops- Specified by:
- captureDropsin interface- IForgeEntity
 
- 
captureDrops- Specified by:
- captureDropsin interface- IForgeEntity
 
- 
getPersistentDataDescription copied from interface:IForgeEntityReturns a NBTTagCompound that can be used to store custom data for this entity. It will be written, and read from disc, so it persists over world saves.- Specified by:
- getPersistentDatain interface- IForgeEntity
- Returns:
- A NBTTagCompound
 
- 
canTrampleDescription copied from interface:IForgeEntity- Specified by:
- canTramplein interface- IForgeEntity
- pos- The block pos
- fallDistance- The fall distance
- Returns:
- trueif this entity can trample,- falseotherwise
 
- 
isAddedToWorldpublic final boolean isAddedToWorld()Description copied from interface:IForgeEntityGets whether this entity has been added to a world (for tracking). Specifically between the times when an entity is added to a world and the entity being removed from the world's tracked lists.- Specified by:
- isAddedToWorldin interface- IForgeEntity
- Returns:
- True if this entity is being tracked by a world
 
- 
onAddedToWorldpublic void onAddedToWorld()Description copied from interface:IForgeEntityCalled after the entity has been added to the world's ticking list. Can be overriden, but needs to call super to prevent MC-136995.- Specified by:
- onAddedToWorldin interface- IForgeEntity
 
- 
onRemovedFromWorldpublic void onRemovedFromWorld()Description copied from interface:IForgeEntityCalled after the entity has been removed to the world's ticking list. Can be overriden, but needs to call super to prevent MC-136995.- Specified by:
- onRemovedFromWorldin interface- IForgeEntity
 
- 
revivepublic void revive()Description copied from interface:IForgeEntityRevives an entity that has been removed from a world. Used as replacement for entity.removed = true. Having it as a function allows the entity to react to being revived.- Specified by:
- revivein interface- IForgeEntity
 
- 
getEyeHeightAccess@Deprecated(forRemoval=true, since="1.20.1") public float getEyeHeightAccess(Pose pose, EntityDimensions size) Deprecated, for removal: This API element is subject to removal in a future version.Accessor method forgetEyeHeight(Pose, EntityDimensions)
- 
setFluidTypeHeight
- 
getFluidTypeHeightDescription copied from interface:IForgeEntityReturns the height of the fluid type in relation to the bounding box of the entity. If the entity is not in the fluid type, then0is returned.- Specified by:
- getFluidTypeHeightin interface- IForgeEntity
- Parameters:
- type- the type of the fluid
- Returns:
- the height of the fluid compared to the entity
 
- 
isInFluidTypeDescription copied from interface:IForgeEntityReturns whether the fluid type the entity is currently in matches the specified condition.- Specified by:
- isInFluidTypein interface- IForgeEntity
- Parameters:
- predicate- a test taking in the fluid type and its height
- forAllTypes-- trueif all fluid types should match the condition instead of at least one
- Returns:
- trueif a fluid type meets the condition,- falseotherwise
 
- 
isInFluidTypepublic final boolean isInFluidType()Description copied from interface:IForgeEntityReturns whether the entity is in a fluid.- Specified by:
- isInFluidTypein interface- IForgeEntity
- Returns:
- trueif the entity is in a fluid,- falseotherwise
 
- 
getEyeInFluidTypeDescription copied from interface:IForgeEntityReturns the fluid that is on the entity's eyes.- Specified by:
- getEyeInFluidTypein interface- IForgeEntity
- Returns:
- the fluid that is on the entity's eyes
 
- 
getMaxHeightFluidTypeDescription copied from interface:IForgeEntityReturns the fluid type which is the highest on the bounding box of the entity.- Specified by:
- getMaxHeightFluidTypein interface- IForgeEntity
- Returns:
- the fluid type which is the highest on the bounding box of the entity
 
- 
getDimensionsForgeDeprecated, for removal: This API element is subject to removal in a future version.
- 
level
- 
setLevel
- 
damageSources
- 
lerpPositionAndRotationStepprotected void lerpPositionAndRotationStep(int p_298722_, double p_297490_, double p_300716_, double p_298684_, double p_300659_, double p_298926_) 
 
- 
rider sensitive version