net.minecraft.entity

public abstract class Entity

implements Nameable, EntityLike, ScoreHolder, DataTracked, ComponentsAccess, HeldItemContext, StackReferenceGetter, DebugTrackable, EntryConvertible<EntityType<?>>

net.minecraft.world.entity.Entity
net.minecraft.world.entity.Entity
net.minecraft.class_1297
net.minecraft.entity.Entity

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
LOGGER
field_60355
LOGGER
public static final String
TAG_ID
TAG_ID
field_29985
ID_KEY
public static final String
TAG_UUID
TAG_UUID
field_29994
UUID_KEY
public static final String
TAG_PASSENGERS
TAG_PASSENGERS
field_29986
PASSENGERS_KEY
public static final String
TAG_DATA
TAG_DATA
field_58050
CUSTOM_DATA_KEY
public static final String
TAG_POS
TAG_POS
field_60535
POS_KEY
public static final String
TAG_MOTION
TAG_MOTION
field_60524
MOTION_KEY
public static final String
TAG_ROTATION
TAG_ROTATION
field_60525
ROTATION_KEY
public static final String
TAG_PORTAL_COOLDOWN
TAG_PORTAL_COOLDOWN
field_60526
PORTAL_COOLDOWN_KEY
public static final String
TAG_NO_GRAVITY
TAG_NO_GRAVITY
field_60527
NO_GRAVITY_KEY
public static final String
TAG_AIR
TAG_AIR
field_60528
AIR_KEY
public static final String
TAG_ON_GROUND
TAG_ON_GROUND
field_60529
ON_GROUND_KEY
public static final String
TAG_FALL_DISTANCE
TAG_FALL_DISTANCE
field_60530
FALL_DISTANCE_KEY
public static final String
TAG_FIRE
TAG_FIRE
field_60531
FIRE_KEY
public static final String
TAG_SILENT
TAG_SILENT
field_60532
SILENT_KEY
public static final String
TAG_GLOWING
TAG_GLOWING
field_60533
GLOWING_KEY
public static final String
TAG_INVULNERABLE
TAG_INVULNERABLE
field_60534
INVULNERABLE_KEY
public static final String
TAG_CUSTOM_NAME
TAG_CUSTOM_NAME
field_61220
CUSTOM_NAME_KEY
private static final AtomicInteger
ENTITY_COUNTER
ENTITY_COUNTER
field_5978
CURRENT_ID
public static final int
CONTENTS_SLOT_INDEX
CONTENTS_SLOT_INDEX
field_49791
field_49791
public static final int
BOARDING_COOLDOWN
BOARDING_COOLDOWN
field_29987
MAX_RIDING_COOLDOWN
public static final int
TOTAL_AIR_SUPPLY
TOTAL_AIR_SUPPLY
field_29988
DEFAULT_PORTAL_COOLDOWN
public static final int
MAX_ENTITY_TAG_COUNT
MAX_ENTITY_TAG_COUNT
field_29989
MAX_COMMAND_TAGS
private static final com.mojang.serialization.Codec<List<String>>
TAG_LIST_CODEC
TAG_LIST_CODEC
field_56631
TAG_LIST_CODEC
public static final float
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_2
field_44870
field_44870
public static final double
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5
DELTA_AFFECTED_BY_BLOCKS_BELOW_0_5
field_44871
field_44871
public static final double
DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0
DELTA_AFFECTED_BY_BLOCKS_BELOW_1_0
field_44872
field_44872
public static final int
BASE_TICKS_REQUIRED_TO_FREEZE
BASE_TICKS_REQUIRED_TO_FREEZE
field_29992
DEFAULT_MIN_FREEZE_DAMAGE_TICKS
public static final int
FREEZE_HURT_FREQUENCY
FREEZE_HURT_FREQUENCY
field_29993
FREEZING_DAMAGE_INTERVAL
public static final int
BASE_SAFE_FALL_DISTANCE
BASE_SAFE_FALL_DISTANCE
field_49073
field_49073
private static final Box
INITIAL_AABB
INITIAL_AABB
field_6025
NULL_BOX
private static final double
WATER_FLOW_SCALE
WATER_FLOW_SCALE
field_29984
SPEED_IN_WATER
private static final double
LAVA_FAST_FLOW_SCALE
LAVA_FAST_FLOW_SCALE
field_29982
SPEED_IN_LAVA_IN_NETHER
private static final double
LAVA_SLOW_FLOW_SCALE
LAVA_SLOW_FLOW_SCALE
field_29983
SPEED_IN_LAVA
private static final int
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL_PER_TICK
MAX_BLOCK_ITERATIONS_ALONG_TRAVEL_PER_TICK
field_61895
field_61895
private static final double
MAX_MOVEMENT_RESETTING_TRACE_DISTANCE
MAX_MOVEMENT_RESETTING_TRACE_DISTANCE
field_61894
field_61894
private static double
viewScale
viewScale
field_5999
renderDistanceMultiplier
private final EntityType<?>
type
type
field_5961
type
private boolean
requiresPrecisePosition
requiresPrecisePosition
field_59667
alwaysSyncAbsolute
private int
id
id
field_5986
id
public boolean
blocksBuilding
blocksBuilding
field_23807
intersectionChecked
private com.google.common.collect.ImmutableList<Entity>
passengers
passengers
field_5979
passengerList
protected int
boardingCooldown
boardingCooldown
field_5951
ridingCooldown
private Entity
vehicle
vehicle
field_6034
vehicle
private World
level
level
field_6002
world
public double
xo
xo
field_6014
lastX
public double
yo
yo
field_6036
lastY
public double
zo
zo
field_5969
lastZ
private Vec3d
position
position
field_22467
pos
private BlockPos
blockPosition
blockPosition
field_22468
blockPos
private ChunkPos
chunkPosition
chunkPosition
field_35101
chunkPos
private Vec3d
deltaMovement
deltaMovement
field_18276
velocity
private float
yRot
yRot
field_6031
yaw
private float
xRot
xRot
field_5965
pitch
public float
yRotO
yRotO
field_5982
lastYaw
public float
xRotO
xRotO
field_6004
lastPitch
private Box
bb
bb
field_6005
boundingBox
private boolean
onGround
onGround
field_5952
onGround
public boolean
horizontalCollision
horizontalCollision
field_5976
horizontalCollision
public boolean
verticalCollision
verticalCollision
field_5992
verticalCollision
public boolean
verticalCollisionBelow
verticalCollisionBelow
field_36331
groundCollision
public boolean
minorHorizontalCollision
minorHorizontalCollision
field_34927
collidedSoftly
public boolean
hurtMarked
hurtMarked
field_6037
knockedBack
protected Vec3d
stuckSpeedMultiplier
stuckSpeedMultiplier
field_17046
movementMultiplier
private Entity$RemovalReason
removalReason
removalReason
field_26995
removalReason
public static final float
DEFAULT_BB_WIDTH
DEFAULT_BB_WIDTH
field_29973
DEFAULT_FRICTION
public static final float
DEFAULT_BB_HEIGHT
DEFAULT_BB_HEIGHT
field_29974
MIN_RISING_BUBBLE_COLUMN_SPEED
public float
moveDist
moveDist
field_5994
distanceTraveled
public float
flyDist
flyDist
field_28627
speed
public double
fallDistance
fallDistance
field_6017
fallDistance
private float
nextStep
nextStep
field_6003
nextStepSoundDistance
public double
xOld
xOld
field_6038
lastRenderX
public double
yOld
yOld
field_5971
lastRenderY
public double
zOld
zOld
field_5989
lastRenderZ
public boolean
noPhysics
noPhysics
field_5960
noClip
protected final Random
random
random
field_5974
random
public int
tickCount
tickCount
field_6012
age
private int
remainingFireTicks
remainingFireTicks
field_5956
fireTicks
private final EntityFluidController
fluidInteraction
fluidInteraction
field_1_2019
fluidController
protected boolean
wasTouchingWater
wasTouchingWater
field_5957
touchingWater
protected boolean
wasEyeInWater
wasEyeInWater
field_6000
submergedInWater
public int
invulnerableTime
invulnerableTime
field_6008
timeUntilRegen
protected boolean
firstTick
firstTick
field_5953
firstUpdate
protected final DataTracker
entityData
entityData
field_6011
dataTracker
protected static final TrackedData<Byte>
DATA_SHARED_FLAGS_ID
DATA_SHARED_FLAGS_ID
field_5990
FLAGS
protected static final int
FLAG_ONFIRE
FLAG_ONFIRE
field_29979
ON_FIRE_FLAG_INDEX
private static final int
FLAG_SHIFT_KEY_DOWN
FLAG_SHIFT_KEY_DOWN
field_29975
SNEAKING_FLAG_INDEX
private static final int
FLAG_SPRINTING
FLAG_SPRINTING
field_29976
SPRINTING_FLAG_INDEX
private static final int
FLAG_SWIMMING
FLAG_SWIMMING
field_29977
SWIMMING_FLAG_INDEX
private static final int
FLAG_INVISIBLE
FLAG_INVISIBLE
field_29978
INVISIBLE_FLAG_INDEX
protected static final int
FLAG_GLOWING
FLAG_GLOWING
field_29980
GLOWING_FLAG_INDEX
protected static final int
FLAG_FALL_FLYING
FLAG_FALL_FLYING
field_29981
GLIDING_FLAG_INDEX
private static final TrackedData<Integer>
DATA_AIR_SUPPLY_ID
DATA_AIR_SUPPLY_ID
field_6032
AIR
private static final TrackedData<Optional<Text>>
DATA_CUSTOM_NAME
DATA_CUSTOM_NAME
field_6027
CUSTOM_NAME
private static final TrackedData<Boolean>
DATA_CUSTOM_NAME_VISIBLE
DATA_CUSTOM_NAME_VISIBLE
field_5975
NAME_VISIBLE
private static final TrackedData<Boolean>
DATA_SILENT
DATA_SILENT
field_5962
SILENT
private static final TrackedData<Boolean>
DATA_NO_GRAVITY
DATA_NO_GRAVITY
field_5995
NO_GRAVITY
protected static final TrackedData<EntityPose>
DATA_POSE
DATA_POSE
field_18064
POSE
private static final TrackedData<Integer>
DATA_TICKS_FROZEN
DATA_TICKS_FROZEN
field_27858
FROZEN_TICKS
private EntityChangeListener
levelCallback
levelCallback
field_26996
changeListener
private final TrackedPosition
packetPositionCodec
packetPositionCodec
field_38931
trackedPosition
public boolean
needsSync
needsSync
field_64356
velocityDirty
public PortalManager
portalProcess
portalProcess
field_51994
portalManager
private int
portalCooldown
portalCooldown
field_6018
portalCooldown
private boolean
invulnerable
invulnerable
field_6009
invulnerable
protected UUID
uuid
uuid
field_6021
uuid
protected String
stringUUID
stringUUID
field_5981
uuidString
private boolean
hasGlowingTag
hasGlowingTag
field_5958
glowing
private final Set<String>
tags
tags
field_6029
commandTags
private final double[]
pistonDeltas
pistonDeltas
field_5993
pistonMovementDelta
private long
pistonDeltasGameTime
pistonDeltasGameTime
field_5996
pistonMovementTick
private EntityDimensions
dimensions
dimensions
field_18065
dimensions
private float
eyeHeight
eyeHeight
field_18066
standingEyeHeight
public boolean
isInPowderSnow
isInPowderSnow
field_27857
inPowderSnow
public boolean
wasInPowderSnow
wasInPowderSnow
field_28628
wasInPowderSnow
public Optional<BlockPos>
mainSupportingBlockPos
mainSupportingBlockPos
field_44784
supportingBlockPos
private boolean
onGroundNoBlocks
onGroundNoBlocks
field_44873
forceUpdateSupportingBlockPos
private float
crystalSoundIntensity
crystalSoundIntensity
field_26997
lastChimeIntensity
private int
lastCrystalSoundPlayTick
lastCrystalSoundPlayTick
field_26994
lastChimeAge
private boolean
hasVisualFire
hasVisualFire
field_33758
hasVisualFire
private Vec3d
lastKnownSpeed
lastKnownSpeed
field_64357
movement
private Vec3d
lastKnownPosition
lastKnownPosition
field_64358
lastPos
private BlockState
inBlockState
inBlockState
field_47742
stateAtPos
public static final int
MAX_MOVEMENTS_HANDELED_PER_TICK
MAX_MOVEMENTS_HANDELED_PER_TICK
field_60858
MAX_QUEUED_COLLISION_CHECKS
private final ArrayDeque<Entity$QueuedCollisionCheck>
movementThisTick
movementThisTick
field_54947
queuedCollisionChecks
private final List<Entity$QueuedCollisionCheck>
finalMovementsThisTick
finalMovementsThisTick
field_57579
currentlyCheckedCollisions
private final it.unimi.dsi.fastutil.longs.LongSet
visitedBlocks
visitedBlocks
field_54948
collidedBlockPositions
private final EntityCollisionHandler$Impl
insideEffectCollector
insideEffectCollector
field_56630
collisionHandler
private NbtComponent
customData
customData
field_58051
customData

Constructor summary

ModifierConstructor
public (EntityType<?> type, World world)

Method summary

Modifier and TypeMethod
public boolean
isColliding(BlockPos pos, BlockState state)
isColliding(BlockPos pos, BlockState state)
method_30632(class_2338 arg0, class_2680 arg1)
collidesWithStateAtPos(BlockPos pos, BlockState state)
public int
getTeamColor()
getTeamColor()
method_22861()
getTeamColorValue()
public boolean
isSpectator()
isSpectator()
method_7325()
isSpectator()
public boolean
canInteractWithLevel()
canInteractWithLevel()
method_73187()
isInteractable()
public final void
unRide()
unRide()
method_18375()
detach()
public void
syncPacketPositionCodec(double x, double y, double z)
syncPacketPositionCodec(double x, double y, double z)
method_43391(double arg0, double arg1, double arg2)
updateTrackedPosition(double x, double y, double z)
public TrackedPosition
getPositionCodec()
getPositionCodec()
method_43389()
getTrackedPosition()
public EntityType<?>
getType()
getType()
method_5864()
getType()
public RegistryEntry<EntityType<?>>
typeHolder()
typeHolder()
method_40180()
getRegistryEntry()
public boolean
getRequiresPrecisePosition()
getRequiresPrecisePosition()
method_70667()
shouldAlwaysSyncAbsolute()
public void
setRequiresPrecisePosition(boolean requiresPrecisePosition)
setRequiresPrecisePosition(boolean requiresPrecisePosition)
method_70669(boolean arg0)
setAlwaysSyncAbsolute(boolean alwaysSyncAbsolute)
public int
getId()
getId()
method_5628()
getId()
public void
setId(int id)
setId(int id)
method_5838(int arg0)
setId(int id)
public Set<String>
entityTags()
entityTags()
method_5752()
getCommandTags()
public boolean
addTag(String tag)
addTag(String tag)
method_5780(String arg0)
addCommandTag(String tag)
public boolean
removeTag(String tag)
removeTag(String tag)
method_5738(String arg0)
removeCommandTag(String tag)
public void
kill(ServerLevel level)
kill(ServerLevel level)
method_5768(class_3218 arg0)
kill(ServerWorld world)
public final void
discard()
discard()
method_31472()
discard()
protected abstract void
defineSynchedData(SynchedEntityData$Builder entityData)
defineSynchedData(SynchedEntityData$Builder entityData)
method_5693(class_2945$class_9222 arg0)
initDataTracker(DataTracker$Builder builder)
public DataTracker
getEntityData()
getEntityData()
method_5841()
getDataTracker()
public void
remove(Entity$RemovalReason reason)
remove(Entity$RemovalReason reason)
method_5650(class_1297$class_5529 arg0)
remove(Entity$RemovalReason reason)
public void
onClientRemoval()
onClientRemoval()
method_36209()
onRemoved()
public void
onRemoval(Entity$RemovalReason reason)
onRemoval(Entity$RemovalReason reason)
method_64615(class_1297$class_5529 arg0)
onRemove(Entity$RemovalReason reason)
public void
setPose(Pose pose)
setPose(Pose pose)
method_18380(class_4050 arg0)
setPose(EntityPose pose)
public EntityPose
getPose()
getPose()
method_18376()
getPose()
public boolean
hasPose(Pose pose)
hasPose(Pose pose)
method_41328(class_4050 arg0)
isInPose(EntityPose pose)
public boolean
closerThan(Entity other, double distance)
closerThan(Entity other, double distance)
method_24516(class_1297 arg0, double arg1)
isInRange(Entity entity, double radius)
public boolean
closerThan(Entity other, double distanceXZ, double distanceY)
closerThan(Entity other, double distanceXZ, double distanceY)
method_43259(class_1297 arg0, double arg1, double arg2)
isInRange(Entity entity, double horizontalRadius, double verticalRadius)
protected void
setRot(float yRot, float xRot)
setRot(float yRot, float xRot)
method_5710(float arg0, float arg1)
setRotation(float yaw, float pitch)
public final void
setPos(Vec3 pos)
setPos(Vec3 pos)
method_33574(class_243 arg0)
setPosition(Vec3d pos)
public void
setPos(double x, double y, double z)
setPos(double x, double y, double z)
method_5814(double arg0, double arg1, double arg2)
setPosition(double x, double y, double z)
protected final Box
makeBoundingBox()
makeBoundingBox()
method_33332()
calculateBoundingBox()
protected Box
makeBoundingBox(Vec3 position)
makeBoundingBox(Vec3 position)
method_65341(class_243 arg0)
calculateDefaultBoundingBox(Vec3d pos)
protected void
reapplyPosition()
reapplyPosition()
method_23311()
refreshPosition()
public void
turn(double xo, double yo)
turn(double xo, double yo)
method_5872(double arg0, double arg1)
changeLookDirection(double cursorDeltaX, double cursorDeltaY)
public void
updateDataBeforeSync()
updateDataBeforeSync()
method_75725()
beforePacketsSent()
public void
tick()
tick()
method_5773()
tick()
public void
baseTick()
baseTick()
method_5670()
baseTick()
protected void
computeSpeed()
computeSpeed()
method_76440()
tickLastPos()
public void
setSharedFlagOnFire(boolean value)
setSharedFlagOnFire(boolean value)
method_33572(boolean arg0)
setOnFire(boolean onFire)
public void
checkBelowWorld()
checkBelowWorld()
method_31473()
attemptTickInVoid()
public void
setPortalCooldown()
setPortalCooldown()
method_30229()
resetPortalCooldown()
public void
setPortalCooldown(int portalCooldown)
setPortalCooldown(int portalCooldown)
method_51850(int arg0)
setPortalCooldown(int portalCooldown)
public int
getPortalCooldown()
getPortalCooldown()
method_51848()
getPortalCooldown()
public boolean
isOnPortalCooldown()
isOnPortalCooldown()
method_30230()
hasPortalCooldown()
protected void
processPortalCooldown()
processPortalCooldown()
method_5760()
tickPortalCooldown()
public void
lavaIgnite()
lavaIgnite()
method_67633()
igniteByLava()
public void
lavaHurt()
lavaHurt()
method_5730()
setOnFireFromLava()
protected boolean
shouldPlayLavaHurtSound()
shouldPlayLavaHurtSound()
method_64270()
shouldPlayBurnSoundInLava()
public final void
igniteForSeconds(float numberOfSeconds)
igniteForSeconds(float numberOfSeconds)
method_5639(float arg0)
setOnFireFor(float seconds)
public void
igniteForTicks(int numberOfTicks)
igniteForTicks(int numberOfTicks)
method_56073(int arg0)
setOnFireForTicks(int ticks)
public void
setRemainingFireTicks(int remainingTicks)
setRemainingFireTicks(int remainingTicks)
method_20803(int arg0)
setFireTicks(int fireTicks)
public int
getRemainingFireTicks()
getRemainingFireTicks()
method_20802()
getFireTicks()
public void
clearFire()
clearFire()
method_5646()
extinguish()
protected void
onBelowWorld()
onBelowWorld()
method_5825()
tickInVoid()
public boolean
isFree(double xa, double ya, double za)
isFree(double xa, double ya, double za)
method_5654(double arg0, double arg1, double arg2)
doesNotCollide(double offsetX, double offsetY, double offsetZ)
private boolean
isFree(AABB box)
isFree(AABB box)
method_5629(class_238 arg0)
doesNotCollide(Box box)
public void
setOnGround(boolean onGround)
setOnGround(boolean onGround)
method_24830(boolean arg0)
setOnGround(boolean onGround)
public void
setOnGroundWithMovement(boolean onGround, Vec3 movement)
setOnGroundWithMovement(boolean onGround, Vec3 movement)
method_65342(boolean arg0, class_243 arg1)
setMovement(boolean onGround, Vec3d movement)
public void
setOnGroundWithMovement(boolean onGround, boolean horizontalCollision, Vec3 movement)
setOnGroundWithMovement(boolean onGround, boolean horizontalCollision, Vec3 movement)
method_60607(boolean arg0, boolean arg1, class_243 arg2)
setMovement(boolean onGround, boolean horizontalCollision, Vec3d movement)
public boolean
isSupportedBy(BlockPos pos)
isSupportedBy(BlockPos pos)
method_51849(class_2338 arg0)
isSupportedBy(BlockPos pos)
protected void
checkSupportingBlock(boolean onGround, Vec3 movement)
checkSupportingBlock(boolean onGround, Vec3 movement)
method_51703(boolean arg0, class_243 arg1)
updateSupportingBlockPos(boolean onGround, Vec3d movement)
public boolean
onGround()
onGround()
method_24828()
isOnGround()
public void
move(MoverType moverType, Vec3 delta)
move(MoverType moverType, Vec3 delta)
method_5784(class_1313 arg0, class_243 arg1)
move(MovementType type, Vec3d movement)
private void
applyMovementEmissionAndPlaySound(Entity$MovementEmission emission, Vec3 clippedMovement, BlockPos effectPos, BlockState effectState)
applyMovementEmissionAndPlaySound(Entity$MovementEmission emission, Vec3 clippedMovement, BlockPos effectPos, BlockState effectState)
method_61407(class_1297$class_5799 arg0, class_243 arg1, class_2338 arg2, class_2680 arg3)
applyMoveEffect(Entity$MoveEffect moveEffect, Vec3d movement, BlockPos landingPos, BlockState landingState)
protected void
applyEffectsFromBlocks()
applyEffectsFromBlocks()
method_61409()
tickBlockCollision()
protected void
applyEffectsFromBlocksForLastMovements()
applyEffectsFromBlocksForLastMovements()
method_1_3098()
tickCurrentlyCheckedCollisions()
private void
addMovementThisTick(Entity$Movement movement)
addMovementThisTick(Entity$Movement movement)
method_71966(class_1297$class_10365 arg0)
addQueuedCollisionChecks(Entity$QueuedCollisionCheck queuedCollisionCheck)
public void
removeLatestMovementRecording()
removeLatestMovementRecording()
method_68259()
popQueuedCollisionCheck()
protected void
clearMovementThisTick()
clearMovementThisTick()
method_71965()
clearQueuedCollisionChecks()
public boolean
hasMovedHorizontallyRecently()
hasMovedHorizontallyRecently()
method_76798()
isMovingHorizontally()
public void
applyEffectsFromBlocks(Vec3 from, Vec3 to)
applyEffectsFromBlocks(Vec3 from, Vec3 to)
method_64166(class_243 arg0, class_243 arg1)
tickBlockCollision(Vec3d lastRenderPos, Vec3d pos)
private void
applyEffectsFromBlocks(List<Entity$Movement> movements)
applyEffectsFromBlocks(List<Entity$Movement> movements)
method_68260(List<class_1297$class_10365> arg0)
tickBlockCollisions(List<Entity$QueuedCollisionCheck> checks)
protected boolean
isAffectedByBlocks()
isAffectedByBlocks()
method_61410()
shouldTickBlockCollision()
private boolean
isStateClimbable(BlockState state)
isStateClimbable(BlockState state)
method_51702(class_2680 arg0)
canClimb(BlockState state)
private boolean
vibrationAndSoundEffectsFromBlock(BlockPos pos, BlockState blockState, boolean shouldSound, boolean shouldVibrate, Vec3 clippedMovement)
vibrationAndSoundEffectsFromBlock(BlockPos pos, BlockState blockState, boolean shouldSound, boolean shouldVibrate, Vec3 clippedMovement)
method_51701(class_2338 arg0, class_2680 arg1, boolean arg2, boolean arg3, class_243 arg4)
stepOnBlock(BlockPos pos, BlockState state, boolean playSound, boolean emitEvent, Vec3d movement)
protected boolean
isHorizontalCollisionMinor(Vec3 movement)
isHorizontalCollisionMinor(Vec3 movement)
method_39759(class_243 arg0)
hasCollidedSoftly(Vec3d adjustedMovement)
protected void
playEntityOnFireExtinguishedSound()
playEntityOnFireExtinguishedSound()
method_36975()
playExtinguishSound()
public void
extinguishFire()
extinguishFire()
method_46395()
extinguishWithSound()
protected void
processFlappingMovement()
processFlappingMovement()
method_33573()
addAirTravelEffects()
public BlockPos
getOnPosLegacy()
getOnPosLegacy()
method_43260()
getLandingPos()
public BlockPos
getBlockPosBelowThatAffectsMyMovement()
getBlockPosBelowThatAffectsMyMovement()
method_23314()
getVelocityAffectingPos()
public BlockPos
getOnPos()
getOnPos()
method_23312()
getSteppingPos()
protected BlockPos
getOnPos(float offset)
getOnPos(float offset)
method_43258(float arg0)
getPosWithYOffset(float offset)
protected float
getBlockJumpFactor()
getBlockJumpFactor()
method_23313()
getJumpVelocityMultiplier()
protected float
getBlockSpeedFactor()
getBlockSpeedFactor()
method_23326()
getVelocityMultiplier()
protected Vec3d
maybeBackOffFromEdge(Vec3 delta, MoverType moverType)
maybeBackOffFromEdge(Vec3 delta, MoverType moverType)
method_18796(class_243 arg0, class_1313 arg1)
adjustMovementForSneaking(Vec3d movement, MovementType type)
protected Vec3d
limitPistonMovement(Vec3 vec)
limitPistonMovement(Vec3 vec)
method_18794(class_243 arg0)
adjustMovementForPiston(Vec3d movement)
private double
applyPistonMovementRestriction(Direction$Axis axis, double amount)
applyPistonMovementRestriction(Direction$Axis axis, double amount)
method_18797(class_2350$class_2351 arg0, double arg1)
calculatePistonMovementFactor(Direction$Axis axis, double offsetFactor)
public double
getAvailableSpaceBelow(double maxDistance)
getAvailableSpaceBelow(double maxDistance)
method_74657(double arg0)
calcDistanceFromBottomCollision(double checkedDistance)
private Vec3d
collide(Vec3 movement)
collide(Vec3 movement)
method_17835(class_243 arg0)
adjustMovementForCollisions(Vec3d movement)
private static float[]
collectCandidateStepUpHeights(AABB boundingBox, List<VoxelShape> colliders, float maxStepHeight, float stepHeightToSkip)
collectCandidateStepUpHeights(AABB boundingBox, List<VoxelShape> colliders, float maxStepHeight, float stepHeightToSkip)
method_59921(class_238 arg0, List<class_265> arg1, float arg2, float arg3)
collectStepHeights(Box collisionBox, List<VoxelShape> collisions, float stepHeight, float movementY)
public static Vec3d
collideBoundingBox(Entity source, Vec3 movement, AABB boundingBox, Level level, List<VoxelShape> entityColliders)
collideBoundingBox(Entity source, Vec3 movement, AABB boundingBox, Level level, List<VoxelShape> entityColliders)
method_20736(class_1297 arg0, class_243 arg1, class_238 arg2, class_1937 arg3, List<class_265> arg4)
adjustMovementForCollisions(Entity entity, Vec3d movement, Box entityBoundingBox, World world, List<VoxelShape> collisions)
public static List<VoxelShape>
collectAllColliders(Entity source, Level level, AABB boundingBox)
collectAllColliders(Entity source, Level level, AABB boundingBox)
method_74656(class_1297 arg0, class_1937 arg1, class_238 arg2)
findCollisions(Entity entity, World world, Box box)
private static List<VoxelShape>
collectColliders(Entity source, Level level, List<VoxelShape> entityColliders, AABB boundingBox)
collectColliders(Entity source, Level level, List<VoxelShape> entityColliders, AABB boundingBox)
method_59920(class_1297 arg0, class_1937 arg1, List<class_265> arg2, class_238 arg3)
findCollisionsForMovement(Entity entity, World world, List<VoxelShape> regularCollisions, Box movingEntityBoundingBox)
private static Vec3d
collideWithShapes(Vec3 movement, AABB boundingBox, List<VoxelShape> shapes)
collideWithShapes(Vec3 movement, AABB boundingBox, List<VoxelShape> shapes)
method_20737(class_243 arg0, class_238 arg1, List<class_265> arg2)
adjustMovementForCollisions(Vec3d movement, Box entityBoundingBox, List<VoxelShape> collisions)
protected float
nextStep()
nextStep()
method_5867()
calculateNextStepSoundDistance()
protected SoundEvent
getSwimSound()
getSwimSound()
method_5737()
getSwimSound()
protected SoundEvent
getSwimSplashSound()
getSwimSplashSound()
method_5625()
getSplashSound()
protected SoundEvent
getSwimHighSpeedSplashSound()
getSwimHighSpeedSplashSound()
method_5672()
getHighSpeedSplashSound()
private void
checkInsideBlocks(List<Entity$Movement> movements, InsideBlockEffectApplier$StepBasedCollector effectCollector)
checkInsideBlocks(List<Entity$Movement> movements, InsideBlockEffectApplier$StepBasedCollector effectCollector)
method_65037(List<class_1297$class_10365> arg0, class_10774$class_10775 arg1)
checkBlockCollisions(List<Entity$QueuedCollisionCheck> queuedCollisionChecks, EntityCollisionHandler$Impl collisionHandler)
private int
checkInsideBlocks(Vec3 from, Vec3 to, InsideBlockEffectApplier$StepBasedCollector effectCollector, it.unimi.dsi.fastutil.longs.LongSet visitedBlocks, int maxMovementIterations)
checkInsideBlocks(Vec3 from, Vec3 to, InsideBlockEffectApplier$StepBasedCollector effectCollector, it.unimi.dsi.fastutil.longs.LongSet visitedBlocks, int maxMovementIterations)
method_72084(class_243 arg0, class_243 arg1, class_10774$class_10775 arg2, it.unimi.dsi.fastutil.longs.LongSet arg3, int arg4)
checkBlockCollision(Vec3d from, Vec3d to, EntityCollisionHandler$Impl collisionHandler, it.unimi.dsi.fastutil.longs.LongSet collidedBlockPositions, int minVersion)
private void
debugBlockIntersection(ServerLevel level, BlockPos pos, boolean insideBlock, boolean insideFluid)
debugBlockIntersection(ServerLevel level, BlockPos pos, boolean insideBlock, boolean insideFluid)
method_72085(class_3218 arg0, class_2338 arg1, boolean arg2, boolean arg3)
afterCollisionCheck(ServerWorld world, BlockPos pos, boolean blockCollision, boolean fluidCollision)
public boolean
collidedWithFluid(FluidState fluidState, BlockPos blockPos, Vec3 from, Vec3 to)
collidedWithFluid(FluidState fluidState, BlockPos blockPos, Vec3 from, Vec3 to)
method_66648(class_3610 arg0, class_2338 arg1, class_243 arg2, class_243 arg3)
collidesWithFluid(FluidState state, BlockPos fluidPos, Vec3d oldPos, Vec3d newPos)
public boolean
collidedWithShapeMovingFrom(Vec3 from, Vec3 to, List<AABB> aabbs)
collidedWithShapeMovingFrom(Vec3 from, Vec3 to, List<AABB> aabbs)
method_63612(class_243 arg0, class_243 arg1, List<class_238> arg2)
collides(Vec3d oldPos, Vec3d newPos, List<Box> boxes)
protected void
onInsideBlock(BlockState state)
onInsideBlock(BlockState state)
method_5622(class_2680 arg0)
onBlockCollision(BlockState state)
public BlockPos
adjustSpawnLocation(ServerLevel level, BlockPos spawnSuggestion)
adjustSpawnLocation(ServerLevel level, BlockPos spawnSuggestion)
method_14245(class_3218 arg0, class_2338 arg1)
getWorldSpawnPos(ServerWorld world, BlockPos basePos)
public void
gameEvent(Holder<GameEvent> event, Entity sourceEntity)
gameEvent(Holder<GameEvent> event, Entity sourceEntity)
method_32875(class_6880<class_5712> arg0, class_1297 arg1)
emitGameEvent(RegistryEntry<GameEvent> event, Entity entity)
public void
gameEvent(Holder<GameEvent> event)
gameEvent(Holder<GameEvent> event)
method_32876(class_6880<class_5712> arg0)
emitGameEvent(RegistryEntry<GameEvent> event)
private void
walkingStepSound(BlockPos onPos, BlockState onState)
walkingStepSound(BlockPos onPos, BlockState onState)
method_51297(class_2338 arg0, class_2680 arg1)
playStepSounds(BlockPos pos, BlockState state)
protected void
waterSwimSound()
waterSwimSound()
method_51295()
playSwimSound()
protected BlockPos
getPrimaryStepSoundBlockPos(BlockPos affectingPos)
getPrimaryStepSoundBlockPos(BlockPos affectingPos)
method_49788(class_2338 arg0)
getStepSoundPos(BlockPos pos)
protected void
playCombinationStepSounds(BlockState primaryStepSound, BlockState secondaryStepSound)
playCombinationStepSounds(BlockState primaryStepSound, BlockState secondaryStepSound)
method_49787(class_2680 arg0, class_2680 arg1)
playCombinationStepSounds(BlockState primaryState, BlockState secondaryState)
protected void
playMuffledStepSound(BlockState blockState)
playMuffledStepSound(BlockState blockState)
method_51296(class_2680 arg0)
playSecondaryStepSound(BlockState state)
protected void
playStepSound(BlockPos pos, BlockState blockState)
playStepSound(BlockPos pos, BlockState blockState)
method_5712(class_2338 arg0, class_2680 arg1)
playStepSound(BlockPos pos, BlockState state)
private boolean
shouldPlayAmethystStepSound(BlockState affectingState)
shouldPlayAmethystStepSound(BlockState affectingState)
method_49790(class_2680 arg0)
shouldPlayAmethystChimeSound(BlockState state)
private void
playAmethystStepSound()
playAmethystStepSound()
method_37215()
playAmethystChimeSound()
protected void
playSwimSound(float volume)
playSwimSound(float volume)
method_5734(float arg0)
playSwimSound(float volume)
protected void
onFlap()
onFlap()
method_5801()
addFlapEffects()
protected boolean
isFlapping()
isFlapping()
method_5776()
isFlappingWings()
public void
playSound(SoundEvent sound, float volume, float pitch)
playSound(SoundEvent sound, float volume, float pitch)
method_5783(class_3414 arg0, float arg1, float arg2)
playSound(SoundEvent sound, float volume, float pitch)
public void
playSound(SoundEvent sound)
playSound(SoundEvent sound)
method_43077(class_3414 arg0)
playSoundIfNotSilent(SoundEvent event)
public boolean
isSilent()
isSilent()
method_5701()
isSilent()
public void
setSilent(boolean silent)
setSilent(boolean silent)
method_5803(boolean arg0)
setSilent(boolean silent)
public boolean
isNoGravity()
isNoGravity()
method_5740()
hasNoGravity()
public void
setNoGravity(boolean noGravity)
setNoGravity(boolean noGravity)
method_5875(boolean arg0)
setNoGravity(boolean noGravity)
protected double
getDefaultGravity()
getDefaultGravity()
method_7490()
getGravity()
public final double
getGravity()
getGravity()
method_56989()
getFinalGravity()
protected void
applyGravity()
applyGravity()
method_56990()
applyGravity()
protected Entity$MoveEffect
getMovementEmission()
getMovementEmission()
method_33570()
getMoveEffect()
public boolean
dampensVibrations()
dampensVibrations()
method_33189()
occludeVibrationSignals()
public final void
doCheckFallDamage(double xa, double ya, double za, boolean onGround)
doCheckFallDamage(double xa, double ya, double za, boolean onGround)
method_65942(double arg0, double arg1, double arg2, boolean arg3)
handleFall(double xDifference, double yDifference, double zDifference, boolean onGround)
protected void
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
checkFallDamage(double ya, boolean onGround, BlockState onState, BlockPos pos)
method_5623(double arg0, boolean arg1, class_2680 arg2, class_2338 arg3)
fall(double heightDifference, boolean onGround, BlockState state, BlockPos landedPosition)
public boolean
fireImmune()
fireImmune()
method_5753()
isFireImmune()
public boolean
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
causeFallDamage(double fallDistance, float damageModifier, DamageSource damageSource)
method_5747(double arg0, float arg1, class_1282 arg2)
handleFallDamage(double fallDistance, float damagePerDistance, DamageSource damageSource)
protected void
propagateFallToPassengers(double fallDistance, float damageModifier, DamageSource damageSource)
propagateFallToPassengers(double fallDistance, float damageModifier, DamageSource damageSource)
method_67345(double arg0, float arg1, class_1282 arg2)
handleFallDamageForPassengers(double fallDistance, float damagePerDistance, DamageSource damageSource)
public boolean
isInWater()
isInWater()
method_5799()
isTouchingWater()
boolean
isInRain()
isInRain()
method_5778()
isBeingRainedOn()
public boolean
isInWaterOrRain()
isInWaterOrRain()
method_5721()
isTouchingWaterOrRain()
public boolean
isInLiquid()
isInLiquid()
method_52535()
isInFluid()
public boolean
isUnderWater()
isUnderWater()
method_5869()
isSubmergedInWater()
public boolean
isInShallowWater()
isInShallowWater()
method_74016()
isPartlyTouchingWater()
public boolean
isInClouds()
isInClouds()
method_70668()
isAtCloudHeight()
public void
updateSwimming()
updateSwimming()
method_5790()
updateSwimming()
protected boolean
updateFluidInteraction()
updateFluidInteraction()
method_5876()
updateFluidState()
protected void
doWaterSplashEffect()
doWaterSplashEffect()
method_5746()
onSwimmingStart()
protected BlockState
getBlockStateOnLegacy()
getBlockStateOnLegacy()
method_43261()
getLandingBlockState()
public BlockState
getBlockStateOn()
getBlockStateOn()
method_25936()
getSteppingBlockState()
public boolean
canSpawnSprintParticle()
canSpawnSprintParticle()
method_27298()
shouldSpawnSprintingParticles()
protected void
spawnSprintParticle()
spawnSprintParticle()
method_5839()
spawnSprintingParticles()
public boolean
isEyeInFluid(TagKey<Fluid> type)
isEyeInFluid(TagKey<Fluid> type)
method_5777(class_6862<class_3611> arg0)
isSubmergedIn(TagKey<Fluid> fluidTag)
public boolean
isInLava()
isInLava()
method_5771()
isInLava()
public void
moveRelative(float speed, Vec3 input)
moveRelative(float speed, Vec3 input)
method_5724(float arg0, class_243 arg1)
updateVelocity(float speed, Vec3d movementInput)
protected static Vec3d
getInputVector(Vec3 input, float speed, float yRot)
getInputVector(Vec3 input, float speed, float yRot)
method_18795(class_243 arg0, float arg1, float arg2)
movementInputToVelocity(Vec3d movementInput, float speed, float yaw)
public float
getLightLevelDependentMagicValue()
getLightLevelDependentMagicValue()
method_5718()
getBrightnessAtEyes()
public void
absSnapTo(double x, double y, double z, float yRot, float xRot)
absSnapTo(double x, double y, double z, float yRot, float xRot)
method_5641(double arg0, double arg1, double arg2, float arg3, float arg4)
updatePositionAndAngles(double x, double y, double z, float yaw, float pitch)
public void
absSnapRotationTo(float yRot, float xRot)
absSnapRotationTo(float yRot, float xRot)
method_60608(float arg0, float arg1)
setAngles(float yaw, float pitch)
public void
absSnapTo(double x, double y, double z)
absSnapTo(double x, double y, double z)
method_30634(double arg0, double arg1, double arg2)
updatePosition(double x, double y, double z)
public void
snapTo(Vec3 pos)
snapTo(Vec3 pos)
method_29495(class_243 arg0)
refreshPositionAfterTeleport(Vec3d pos)
public void
snapTo(double x, double y, double z)
snapTo(double x, double y, double z)
method_24203(double arg0, double arg1, double arg2)
refreshPositionAfterTeleport(double x, double y, double z)
public void
snapTo(BlockPos spawnPos, float yRot, float xRot)
snapTo(BlockPos spawnPos, float yRot, float xRot)
method_5725(class_2338 arg0, float arg1, float arg2)
refreshPositionAndAngles(BlockPos pos, float yaw, float pitch)
public void
snapTo(Vec3 spawnPos, float yRot, float xRot)
snapTo(Vec3 spawnPos, float yRot, float xRot)
method_60949(class_243 arg0, float arg1, float arg2)
refreshPositionAndAngles(Vec3d pos, float yaw, float pitch)
public void
snapTo(double x, double y, double z, float yRot, float xRot)
snapTo(double x, double y, double z, float yRot, float xRot)
method_5808(double arg0, double arg1, double arg2, float arg3, float arg4)
refreshPositionAndAngles(double x, double y, double z, float yaw, float pitch)
public final void
setOldPosAndRot()
setOldPosAndRot()
method_22862()
resetPosition()
public final void
setOldPosAndRot(Vec3 position, float yRot, float xRot)
setOldPosAndRot(Vec3 position, float yRot, float xRot)
method_63615(class_243 arg0, float arg1, float arg2)
setLastPositionAndAngles(Vec3d pos, float yaw, float pitch)
protected void
setOldPos()
setOldPos()
method_63613()
updateLastPosition()
public void
setOldRot()
setOldRot()
method_63614()
updateLastAngles()
private void
setOldPos(Vec3 position)
setOldPos(Vec3 position)
method_63618(class_243 arg0)
setLastPosition(Vec3d pos)
private void
setOldRot(float yRot, float xRot)
setOldRot(float yRot, float xRot)
method_63617(float arg0, float arg1)
setLastAngles(float lastYaw, float lastPitch)
public final Vec3d
oldPosition()
oldPosition()
method_61411()
getLastRenderPos()
public float
distanceTo(Entity entity)
distanceTo(Entity entity)
method_5739(class_1297 arg0)
distanceTo(Entity entity)
public double
distanceToSqr(double x2, double y2, double z2)
distanceToSqr(double x2, double y2, double z2)
method_5649(double arg0, double arg1, double arg2)
squaredDistanceTo(double x, double y, double z)
public double
distanceToSqr(Entity entity)
distanceToSqr(Entity entity)
method_5858(class_1297 arg0)
squaredDistanceTo(Entity entity)
public double
distanceToSqr(Vec3 pos)
distanceToSqr(Vec3 pos)
method_5707(class_243 arg0)
squaredDistanceTo(Vec3d vector)
public void
playerTouch(Player player)
playerTouch(Player player)
method_5694(class_1657 arg0)
onPlayerCollision(PlayerEntity player)
public void
push(Entity entity)
push(Entity entity)
method_5697(class_1297 arg0)
pushAwayFrom(Entity entity)
public void
push(Vec3 impulse)
push(Vec3 impulse)
method_60491(class_243 arg0)
addVelocity(Vec3d vec)
public void
push(double xa, double ya, double za)
push(double xa, double ya, double za)
method_5762(double arg0, double arg1, double arg2)
addVelocity(double deltaX, double deltaY, double deltaZ)
protected void
markHurt()
markHurt()
method_5785()
scheduleVelocityUpdate()
public final void
hurt(DamageSource source, float damage)
hurt(DamageSource source, float damage)
method_64419(class_1282 arg0, float arg1)
serverDamage(DamageSource source, float amount)
public final boolean
hurtOrSimulate(DamageSource source, float damage)
hurtOrSimulate(DamageSource source, float damage)
method_64420(class_1282 arg0, float arg1)
sidedDamage(DamageSource source, float amount)
public abstract boolean
hurtServer(ServerLevel level, DamageSource source, float damage)
hurtServer(ServerLevel level, DamageSource source, float damage)
method_64397(class_3218 arg0, class_1282 arg1, float arg2)
damage(ServerWorld world, DamageSource source, float amount)
public boolean
hurtClient(DamageSource source)
hurtClient(DamageSource source)
method_5643(class_1282 arg0)
clientDamage(DamageSource source)
public final Vec3d
getViewVector(float a)
getViewVector(float a)
method_5828(float arg0)
getRotationVec(float tickProgress)
public Direction
getNearestViewDirection()
getNearestViewDirection()
method_58149()
getFacing()
public float
getViewXRot(float a)
getViewXRot(float a)
method_5695(float arg0)
getPitch(float tickProgress)
public float
getViewYRot(float a)
getViewYRot(float a)
method_5705(float arg0)
getYaw(float tickProgress)
public float
getXRot(float partialTicks)
getXRot(float partialTicks)
method_61414(float arg0)
getLerpedPitch(float tickProgress)
public float
getYRot(float partialTicks)
getYRot(float partialTicks)
method_61415(float arg0)
getLerpedYaw(float tickProgress)
public final Vec3d
calculateViewVector(float xRot, float yRot)
calculateViewVector(float xRot, float yRot)
method_5631(float arg0, float arg1)
getRotationVector(float pitch, float yaw)
public final Vec3d
getUpVector(float a)
getUpVector(float a)
method_18864(float arg0)
getOppositeRotationVector(float tickProgress)
protected final Vec3d
calculateUpVector(float xRot, float yRot)
calculateUpVector(float xRot, float yRot)
method_18863(float arg0, float arg1)
getOppositeRotationVector(float pitch, float yaw)
public final Vec3d
getEyePosition()
getEyePosition()
method_33571()
getEyePos()
public final Vec3d
getEyePosition(float partialTickTime)
getEyePosition(float partialTickTime)
method_5836(float arg0)
getCameraPosVec(float tickProgress)
public Vec3d
getLightProbePosition(float partialTickTime)
getLightProbePosition(float partialTickTime)
method_31166(float arg0)
getClientCameraPosVec(float tickProgress)
public final Vec3d
getPosition(float partialTickTime)
getPosition(float partialTickTime)
method_30950(float arg0)
getLerpedPos(float deltaTicks)
public HitResult
pick(double range, float a, boolean withLiquids)
pick(double range, float a, boolean withLiquids)
method_5745(double arg0, float arg1, boolean arg2)
raycast(double maxDistance, float tickProgress, boolean includeFluids)
public boolean
canBeHitByProjectile()
canBeHitByProjectile()
method_49108()
canBeHitByProjectile()
public boolean
isPickable()
isPickable()
method_5863()
canHit()
public boolean
isPushable()
isPushable()
method_5810()
isPushable()
public void
awardKillScore(Entity victim, DamageSource killingBlow)
awardKillScore(Entity victim, DamageSource killingBlow)
method_5716(class_1297 arg0, class_1282 arg1)
updateKilledAdvancementCriterion(Entity entityKilled, DamageSource damageSource)
public boolean
shouldRender(double camX, double camY, double camZ)
shouldRender(double camX, double camY, double camZ)
method_5727(double arg0, double arg1, double arg2)
shouldRender(double cameraX, double cameraY, double cameraZ)
public boolean
shouldRenderAtSqrDistance(double distance)
shouldRenderAtSqrDistance(double distance)
method_5640(double arg0)
shouldRender(double distance)
public boolean
saveAsPassenger(ValueOutput output)
saveAsPassenger(ValueOutput output)
method_5786(class_11372 arg0)
saveSelfData(WriteView view)
public boolean
save(ValueOutput output)
save(ValueOutput output)
method_5662(class_11372 arg0)
saveData(WriteView view)
public void
saveWithoutId(ValueOutput output)
saveWithoutId(ValueOutput output)
method_5647(class_11372 arg0)
writeData(WriteView view)
public void
load(ValueInput input)
load(ValueInput input)
method_5651(class_11368 arg0)
readData(ReadView view)
protected boolean
repositionEntityAfterLoad()
repositionEntityAfterLoad()
method_5638()
shouldSetPositionOnLoad()
protected final String
getEncodeId()
getEncodeId()
method_5653()
getSavedEntityId()
protected abstract void
readAdditionalSaveData(ValueInput input)
readAdditionalSaveData(ValueInput input)
method_5749(class_11368 arg0)
readCustomData(ReadView view)
protected abstract void
addAdditionalSaveData(ValueOutput output)
addAdditionalSaveData(ValueOutput output)
method_5652(class_11372 arg0)
writeCustomData(WriteView view)
public ItemEntity
spawnAtLocation(ServerLevel level, ItemLike resource)
spawnAtLocation(ServerLevel level, ItemLike resource)
method_5706(class_3218 arg0, class_1935 arg1)
dropItem(ServerWorld world, ItemConvertible item)
public ItemEntity
spawnAtLocation(ServerLevel level, ItemStack itemStack)
spawnAtLocation(ServerLevel level, ItemStack itemStack)
method_5775(class_3218 arg0, class_1799 arg1)
dropStack(ServerWorld world, ItemStack stack)
public ItemEntity
spawnAtLocation(ServerLevel level, ItemStack itemStack, Vec3 offset)
spawnAtLocation(ServerLevel level, ItemStack itemStack, Vec3 offset)
method_71764(class_3218 arg0, class_1799 arg1, class_243 arg2)
dropStack(ServerWorld world, ItemStack stack, Vec3d offset)
public ItemEntity
spawnAtLocation(ServerLevel level, ItemStack itemStack, float offset)
spawnAtLocation(ServerLevel level, ItemStack itemStack, float offset)
method_5699(class_3218 arg0, class_1799 arg1, float arg2)
dropStack(ServerWorld world, ItemStack stack, float yOffset)
public boolean
isAlive()
isAlive()
method_5805()
isAlive()
public boolean
isInWall()
isInWall()
method_5757()
isInsideWall()
public ActionResult
interact(Player player, InteractionHand hand, Vec3 location)
interact(Player player, InteractionHand hand, Vec3 location)
method_5688(class_1657 arg0, class_1268 arg1, class_243 arg2)
interact(PlayerEntity player, Hand hand, Vec3d hitPos)
public boolean
shearOffAllLeashConnections(Player player)
shearOffAllLeashConnections(Player player)
method_70984(class_1657 arg0)
snipAllHeldLeashes(PlayerEntity player)
public boolean
dropAllLeashConnections(Player player)
dropAllLeashConnections(Player player)
method_70988(class_1657 arg0)
detachAllHeldLeashes(PlayerEntity player)
private boolean
attemptToShearEquipment(Player player, InteractionHand hand, ItemStack heldItem, Mob target)
attemptToShearEquipment(Player player, InteractionHand hand, ItemStack heldItem, Mob target)
method_71765(class_1657 arg0, class_1268 arg1, class_1799 arg2, class_1308 arg3)
shearEquipment(PlayerEntity player, Hand hand, ItemStack shears, MobEntity entity)
public boolean
canCollideWith(Entity entity)
canCollideWith(Entity entity)
method_30949(class_1297 arg0)
collidesWith(Entity other)
public boolean
canBeCollidedWith(Entity other)
canBeCollidedWith(Entity other)
method_30948(class_1297 arg0)
isCollidable(Entity entity)
public void
rideTick()
rideTick()
method_5842()
tickRiding()
public final void
positionRider(Entity passenger)
positionRider(Entity passenger)
method_24201(class_1297 arg0)
updatePassengerPosition(Entity passenger)
protected void
positionRider(Entity passenger, Entity$MoveFunction moveFunction)
positionRider(Entity passenger, Entity$MoveFunction moveFunction)
method_5865(class_1297 arg0, class_1297$class_4738 arg1)
updatePassengerPosition(Entity passenger, Entity$PositionUpdater positionUpdater)
public void
onPassengerTurned(Entity passenger)
onPassengerTurned(Entity passenger)
method_5644(class_1297 arg0)
onPassengerLookAround(Entity passenger)
public Vec3d
getVehicleAttachmentPoint(Entity vehicle)
getVehicleAttachmentPoint(Entity vehicle)
method_55668(class_1297 arg0)
getVehicleAttachmentPos(Entity vehicle)
public Vec3d
getPassengerRidingPosition(Entity passenger)
getPassengerRidingPosition(Entity passenger)
method_52538(class_1297 arg0)
getPassengerRidingPos(Entity passenger)
protected Vec3d
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
getPassengerAttachmentPoint(Entity passenger, EntityDimensions dimensions, float scale)
method_52533(class_1297 arg0, class_4048 arg1, float arg2)
getPassengerAttachmentPos(Entity passenger, EntityDimensions dimensions, float scaleFactor)
protected static Vec3d
getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments)
getDefaultPassengerAttachmentPoint(Entity vehicle, Entity passenger, EntityAttachments attachments)
method_55665(class_1297 arg0, class_1297 arg1, class_9066 arg2)
getPassengerAttachmentPos(Entity vehicle, Entity passenger, EntityAttachments attachments)
public final boolean
startRiding(Entity entity)
startRiding(Entity entity)
method_5804(class_1297 arg0)
startRiding(Entity entity)
public boolean
showVehicleHealth()
showVehicleHealth()
method_5709()
isLiving()
public boolean
startRiding(Entity entityToRide, boolean force, boolean sendEventAndTriggers)
startRiding(Entity entityToRide, boolean force, boolean sendEventAndTriggers)
method_5873(class_1297 arg0, boolean arg1, boolean arg2)
startRiding(Entity entity, boolean force, boolean emitEvent)
protected boolean
canRide(Entity vehicle)
canRide(Entity vehicle)
method_5860(class_1297 arg0)
canStartRiding(Entity entity)
public void
ejectPassengers()
ejectPassengers()
method_5772()
removeAllPassengers()
public void
removeVehicle()
removeVehicle()
method_29239()
dismountVehicle()
public void
stopRiding()
stopRiding()
method_5848()
stopRiding()
protected void
addPassenger(Entity passenger)
addPassenger(Entity passenger)
method_5627(class_1297 arg0)
addPassenger(Entity passenger)
protected void
removePassenger(Entity passenger)
removePassenger(Entity passenger)
method_5793(class_1297 arg0)
removePassenger(Entity passenger)
protected boolean
canAddPassenger(Entity passenger)
canAddPassenger(Entity passenger)
method_5818(class_1297 arg0)
canAddPassenger(Entity passenger)
protected boolean
couldAcceptPassenger()
couldAcceptPassenger()
method_48921()
couldAcceptPassenger()
public final boolean
isInterpolating()
isInterpolating()
method_66245()
isInterpolating()
public final void
moveOrInterpolateTo(Vec3 position, float yRot, float xRot)
moveOrInterpolateTo(Vec3 position, float yRot, float xRot)
method_66246(class_243 arg0, float arg1, float arg2)
updateTrackedPositionAndAngles(Vec3d position, float yaw, float tch)
public final void
moveOrInterpolateTo(float yRot, float xRot)
moveOrInterpolateTo(float yRot, float xRot)
method_73094(float arg0, float arg1)
updateTrackedAngles(float yaw, float itch)
public final void
moveOrInterpolateTo(Vec3 position)
moveOrInterpolateTo(Vec3 position)
method_73095(class_243 arg0)
updateTrackedPosition(Vec3d position)
public final void
moveOrInterpolateTo(Optional<Vec3> position, Optional<Float> yRot, Optional<Float> xRot)
moveOrInterpolateTo(Optional<Vec3> position, Optional<Float> yRot, Optional<Float> xRot)
method_73092(Optional<class_243> arg0, Optional<Float> arg1, Optional<Float> arg2)
updateTrackedPositionAndAngles(Optional<Vec3d> position, Optional<Float> yaw, Optional<Float> itch)
public PositionInterpolator
getInterpolation()
getInterpolation()
method_66233()
getInterpolator()
public void
lerpHeadTo(float yRot, int steps)
lerpHeadTo(float yRot, int steps)
method_5683(float arg0, int arg1)
updateTrackedHeadRotation(float yaw, int interpolationSteps)
public float
getPickRadius()
getPickRadius()
method_5871()
getTargetingMargin()
public Vec3d
getLookAngle()
getLookAngle()
method_5720()
getRotationVector()
public Vec3d
getHeadLookAngle()
getHeadLookAngle()
method_75117()
getHeadRotationVector()
public Vec3d
getHandHoldingItemAngle(Item item)
getHandHoldingItemAngle(Item item)
method_40123(class_1792 arg0)
getHandPosOffset(Item item)
public Vec2f
getRotationVector()
getRotationVector()
method_5802()
getRotationClient()
public Vec3d
getForward()
getForward()
method_5663()
getRotationVecClient()
public void
setAsInsidePortal(Portal portal, BlockPos pos)
setAsInsidePortal(Portal portal, BlockPos pos)
method_60697(class_9797 arg0, class_2338 arg1)
tryUsePortal(Portal portal, BlockPos pos)
protected void
handlePortal()
handlePortal()
method_60698()
tickPortalTeleportation()
public int
getDimensionChangingDelay()
getDimensionChangingDelay()
method_5806()
getDefaultPortalCooldown()
public void
lerpMotion(Vec3 movement)
lerpMotion(Vec3 movement)
method_5750(class_243 arg0)
setVelocityClient(Vec3d clientVelocity)
public void
handleDamageEvent(DamageSource source)
handleDamageEvent(DamageSource source)
method_48922(class_1282 arg0)
onDamaged(DamageSource damageSource)
public void
handleEntityEvent(byte id)
handleEntityEvent(byte id)
method_5711(byte arg0)
handleStatus(byte status)
public void
animateHurt(float direction)
animateHurt(float direction)
method_5879(float arg0)
animateDamage(float yaw)
public boolean
isOnFire()
isOnFire()
method_5809()
isOnFire()
public boolean
isPassenger()
isPassenger()
method_5765()
hasVehicle()
public boolean
isVehicle()
isVehicle()
method_5782()
hasPassengers()
public boolean
dismountsUnderwater()
dismountsUnderwater()
method_49693()
shouldDismountUnderwater()
public boolean
canControlVehicle()
canControlVehicle()
method_52534()
shouldControlVehicles()
public void
setShiftKeyDown(boolean shiftKeyDown)
setShiftKeyDown(boolean shiftKeyDown)
method_5660(boolean arg0)
setSneaking(boolean sneaking)
public boolean
isShiftKeyDown()
isShiftKeyDown()
method_5715()
isSneaking()
public boolean
isSteppingCarefully()
isSteppingCarefully()
method_21749()
bypassesSteppingEffects()
public boolean
isSuppressingBounce()
isSuppressingBounce()
method_21750()
bypassesLandingEffects()
public boolean
isDiscrete()
isDiscrete()
method_21751()
isSneaky()
public boolean
isDescending()
isDescending()
method_21752()
isDescending()
public boolean
isCrouching()
isCrouching()
method_18276()
isInSneakingPose()
public boolean
isSprinting()
isSprinting()
method_5624()
isSprinting()
public void
setSprinting(boolean isSprinting)
setSprinting(boolean isSprinting)
method_5728(boolean arg0)
setSprinting(boolean sprinting)
public boolean
isSwimming()
isSwimming()
method_5681()
isSwimming()
public boolean
isVisuallySwimming()
isVisuallySwimming()
method_20232()
isInSwimmingPose()
public boolean
isVisuallyCrawling()
isVisuallyCrawling()
method_20448()
isCrawling()
public void
setSwimming(boolean swimming)
setSwimming(boolean swimming)
method_5796(boolean arg0)
setSwimming(boolean swimming)
public final boolean
hasGlowingTag()
hasGlowingTag()
method_36361()
isGlowingLocal()
public final void
setGlowingTag(boolean value)
setGlowingTag(boolean value)
method_5834(boolean arg0)
setGlowing(boolean glowing)
public boolean
isCurrentlyGlowing()
isCurrentlyGlowing()
method_5851()
isGlowing()
public boolean
isInvisible()
isInvisible()
method_5767()
isInvisible()
public boolean
isInvisibleTo(Player player)
isInvisibleTo(Player player)
method_5756(class_1657 arg0)
isInvisibleTo(PlayerEntity player)
public boolean
isOnRails()
isOnRails()
method_52172()
isOnRail()
public void
updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> action)
updateDynamicGameEventListener(BiConsumer<DynamicGameEventListener<?>, ServerLevel> action)
method_42147(BiConsumer<class_5715<?>, class_3218> arg0)
updateEventHandler(BiConsumer<EntityGameEventHandler<?>, ServerWorld> callback)
public Team
getTeam()
getTeam()
method_5781()
getScoreboardTeam()
public final boolean
isAlliedTo(Entity other)
isAlliedTo(Entity other)
method_5722(class_1297 arg0)
isTeammate(Entity other)
protected boolean
considersEntityAsAlly(Entity other)
considersEntityAsAlly(Entity other)
method_61416(class_1297 arg0)
isInSameTeam(Entity other)
public boolean
isAlliedTo(Team other)
isAlliedTo(Team other)
method_5645(class_270 arg0)
isTeamPlayer(AbstractTeam team)
public void
setInvisible(boolean invisible)
setInvisible(boolean invisible)
method_5648(boolean arg0)
setInvisible(boolean invisible)
protected boolean
getSharedFlag(int flag)
getSharedFlag(int flag)
method_5795(int arg0)
getFlag(int index)
protected void
setSharedFlag(int flag, boolean value)
setSharedFlag(int flag, boolean value)
method_5729(int arg0, boolean arg1)
setFlag(int index, boolean value)
public int
getMaxAirSupply()
getMaxAirSupply()
method_5748()
getMaxAir()
public int
getAirSupply()
getAirSupply()
method_5669()
getAir()
public void
setAirSupply(int supply)
setAirSupply(int supply)
method_5855(int arg0)
setAir(int air)
public void
clearFreeze()
clearFreeze()
method_67635()
defrost()
public int
getTicksFrozen()
getTicksFrozen()
method_32312()
getFrozenTicks()
public void
setTicksFrozen(int ticks)
setTicksFrozen(int ticks)
method_32317(int arg0)
setFrozenTicks(int frozenTicks)
public float
getPercentFrozen()
getPercentFrozen()
method_32313()
getFreezingScale()
public boolean
isFullyFrozen()
isFullyFrozen()
method_32314()
isFrozen()
public int
getTicksRequiredToFreeze()
getTicksRequiredToFreeze()
method_32315()
getMinFreezeDamageTicks()
public void
thunderHit(ServerLevel level, LightningBolt lightningBolt)
thunderHit(ServerLevel level, LightningBolt lightningBolt)
method_5800(class_3218 arg0, class_1538 arg1)
onStruckByLightning(ServerWorld world, LightningEntity lightning)
public void
onAboveBubbleColumn(boolean dragDown, BlockPos pos)
onAboveBubbleColumn(boolean dragDown, BlockPos pos)
method_5700(boolean arg0, class_2338 arg1)
onBubbleColumnSurfaceCollision(boolean drag, BlockPos pos)
protected static void
handleOnAboveBubbleColumn(Entity entity, boolean dragDown, BlockPos pos)
handleOnAboveBubbleColumn(Entity entity, boolean dragDown, BlockPos pos)
method_67123(class_1297 arg0, boolean arg1, class_2338 arg2)
applyBubbleColumnSurfaceEffects(Entity entity, boolean drag, BlockPos pos)
protected static void
sendBubbleColumnParticles(Level level, BlockPos pos)
sendBubbleColumnParticles(Level level, BlockPos pos)
method_66250(class_1937 arg0, class_2338 arg1)
spawnBubbleColumnParticles(World world, BlockPos pos)
public void
onInsideBubbleColumn(boolean dragDown)
onInsideBubbleColumn(boolean dragDown)
method_5764(boolean arg0)
onBubbleColumnCollision(boolean drag)
protected static void
handleOnInsideBubbleColumn(Entity entity, boolean dragDown)
handleOnInsideBubbleColumn(Entity entity, boolean dragDown)
method_67124(class_1297 arg0, boolean arg1)
applyBubbleColumnEffects(Entity entity, boolean drag)
public boolean
killedEntity(ServerLevel level, LivingEntity entity, DamageSource source)
killedEntity(ServerLevel level, LivingEntity entity, DamageSource source)
method_5874(class_3218 arg0, class_1309 arg1, class_1282 arg2)
onKilledOther(ServerWorld world, LivingEntity other, DamageSource damageSource)
public void
checkFallDistanceAccumulation()
checkFallDistanceAccumulation()
method_70983()
limitFallDistance()
public void
resetFallDistance()
resetFallDistance()
method_38785()
onLanding()
protected void
moveTowardsClosestSpace(double x, double y, double z)
moveTowardsClosestSpace(double x, double y, double z)
method_5632(double arg0, double arg1, double arg2)
pushOutOfBlocks(double x, double y, double z)
public void
makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier)
makeStuckInBlock(BlockState blockState, Vec3 speedMultiplier)
method_5844(class_2680 arg0, class_243 arg1)
slowMovement(BlockState state, Vec3d multiplier)
private static Text
removeAction(Component component)
removeAction(Component component)
method_5856(class_2561 arg0)
removeClickEvents(Text textComponent)
public Text
getName()
getName()
method_5477()
getName()
protected Text
getTypeName()
getTypeName()
method_23315()
getDefaultName()
public boolean
is(Entity other)
is(Entity other)
method_5779(class_1297 arg0)
isPartOf(Entity entity)
public float
getYHeadRot()
getYHeadRot()
method_5791()
getHeadYaw()
public void
setYHeadRot(float yHeadRot)
setYHeadRot(float yHeadRot)
method_5847(float arg0)
setHeadYaw(float headYaw)
public void
setYBodyRot(float yBodyRot)
setYBodyRot(float yBodyRot)
method_5636(float arg0)
setBodyYaw(float bodyYaw)
public boolean
isAttackable()
isAttackable()
method_5732()
isAttackable()
public boolean
skipAttackInteraction(Entity source)
skipAttackInteraction(Entity source)
method_5698(class_1297 arg0)
handleAttack(Entity attacker)
protected final boolean
isInvulnerableToBase(DamageSource source)
isInvulnerableToBase(DamageSource source)
method_64421(class_1282 arg0)
isAlwaysInvulnerableTo(DamageSource damageSource)
public boolean
isInvulnerable()
isInvulnerable()
method_5655()
isInvulnerable()
public void
setInvulnerable(boolean invulnerable)
setInvulnerable(boolean invulnerable)
method_5684(boolean arg0)
setInvulnerable(boolean invulnerable)
public void
copyPosition(Entity target)
copyPosition(Entity target)
method_5719(class_1297 arg0)
copyPositionAndRotation(Entity entity)
public void
restoreFrom(Entity oldEntity)
restoreFrom(Entity oldEntity)
method_5878(class_1297 arg0)
copyFrom(Entity original)
public Entity
teleport(TeleportTransition transition)
teleport(TeleportTransition transition)
method_5731(class_5454 arg0)
teleportTo(TeleportTarget teleportTarget)
private Entity
teleportSameDimension(ServerLevel level, TeleportTransition transition)
teleportSameDimension(ServerLevel level, TeleportTransition transition)
method_64611(class_3218 arg0, class_5454 arg1)
teleportSameDimension(ServerWorld world, TeleportTarget teleportTarget)
private Entity
teleportCrossDimension(ServerLevel oldLevel, ServerLevel newLevel, TeleportTransition transition)
teleportCrossDimension(ServerLevel oldLevel, ServerLevel newLevel, TeleportTransition transition)
method_64614(class_3218 arg0, class_3218 arg1, class_5454 arg2)
teleportCrossDimension(ServerWorld from, ServerWorld to, TeleportTarget teleportTarget)
protected void
teleportSpectators(TeleportTransition transition, ServerLevel oldLevel)
teleportSpectators(TeleportTransition transition, ServerLevel oldLevel)
method_70666(class_5454 arg0, class_3218 arg1)
teleportSpectatingPlayers(TeleportTarget teleportTarget, ServerWorld from)
private TeleportTarget
calculatePassengerTransition(TeleportTransition transition, Entity passenger)
calculatePassengerTransition(TeleportTransition transition, Entity passenger)
method_64613(class_5454 arg0, class_1297 arg1)
getPassengerTeleportTarget(TeleportTarget teleportTarget, Entity passenger)
private void
sendTeleportTransitionToRidingPlayers(TeleportTransition transition)
sendTeleportTransitionToRidingPlayers(TeleportTransition transition)
method_64612(class_5454 arg0)
sendTeleportPacket(TeleportTarget teleportTarget)
public void
teleportSetPosition(PositionMoveRotation destination, Set<Relative> relatives)
teleportSetPosition(PositionMoveRotation destination, Set<Relative> relatives)
method_61412(class_10182 arg0, Set<class_2709> arg1)
setPosition(EntityPosition pos, Set<PositionFlag> flags)
public void
teleportSetPosition(PositionMoveRotation currentValues, PositionMoveRotation destination, Set<Relative> relatives)
teleportSetPosition(PositionMoveRotation currentValues, PositionMoveRotation destination, Set<Relative> relatives)
method_74862(class_10182 arg0, class_10182 arg1, Set<class_2709> arg2)
setPosition(EntityPosition currentPos, EntityPosition newPos, Set<PositionFlag> flags)
public void
forceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX)
forceSetRotation(float yRot, boolean relativeY, float xRot, boolean relativeX)
method_64578(float arg0, boolean arg1, float arg2, boolean arg3)
rotate(float yaw, boolean relativeYaw, float pitch, boolean relativePitch)
public void
placePortalTicket(BlockPos ticketPosition)
placePortalTicket(BlockPos ticketPosition)
method_60950(class_2338 arg0)
addPortalChunkTicketAt(BlockPos pos)
protected void
removeAfterChangingDimensions()
removeAfterChangingDimensions()
method_30076()
removeFromDimension()
public Vec3d
getRelativePortalPosition(Direction$Axis axis, BlockUtil$FoundRectangle portalArea)
getRelativePortalPosition(Direction$Axis axis, BlockUtil$FoundRectangle portalArea)
method_30633(class_2350$class_2351 arg0, class_5459$class_5460 arg1)
positionInPortal(Direction$Axis portalAxis, BlockLocating$Rectangle portalRect)
public boolean
canUsePortal(boolean ignorePassenger)
canUsePortal(boolean ignorePassenger)
method_5822(boolean arg0)
canUsePortals(boolean allowVehicles)
public boolean
canTeleport(Level from, Level to)
canTeleport(Level from, Level to)
method_61113(class_1937 arg0, class_1937 arg1)
canTeleportBetween(World from, World to)
public float
getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance)
getBlockExplosionResistance(Explosion explosion, BlockGetter level, BlockPos pos, BlockState block, FluidState fluid, float resistance)
method_5774(class_1927 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, class_3610 arg4, float arg5)
getEffectiveExplosionResistance(Explosion explosion, BlockView world, BlockPos pos, BlockState blockState, FluidState fluidState, float max)
public boolean
shouldBlockExplode(Explosion explosion, BlockGetter level, BlockPos pos, BlockState state, float power)
shouldBlockExplode(Explosion explosion, BlockGetter level, BlockPos pos, BlockState state, float power)
method_5853(class_1927 arg0, class_1922 arg1, class_2338 arg2, class_2680 arg3, float arg4)
canExplosionDestroyBlock(Explosion explosion, BlockView world, BlockPos pos, BlockState state, float explosionPower)
public int
getMaxFallDistance()
getMaxFallDistance()
method_5850()
getSafeFallDistance()
public boolean
isIgnoringBlockTriggers()
isIgnoringBlockTriggers()
method_5696()
canAvoidTraps()
public void
fillCrashReportCategory(CrashReportCategory category)
fillCrashReportCategory(CrashReportCategory category)
method_5819(class_129 arg0)
populateCrashReport(CrashReportSection section)
public boolean
displayFireAnimation()
displayFireAnimation()
method_5862()
doesRenderOnFire()
public void
setUUID(UUID uuid)
setUUID(UUID uuid)
method_5826(UUID arg0)
setUuid(UUID uuid)
public UUID
getUUID()
getUUID()
method_5667()
getUuid()
public String
getStringUUID()
getStringUUID()
method_5845()
getUuidAsString()
public String
getScoreboardName()
getScoreboardName()
method_5820()
getNameForScoreboard()
public boolean
isPushedByFluid()
isPushedByFluid()
method_5675()
isPushedByFluids()
public static double
getViewScale()
getViewScale()
method_5824()
getRenderDistanceMultiplier()
public static void
setViewScale(double viewScale)
setViewScale(double viewScale)
method_5840(double arg0)
setRenderDistanceMultiplier(double value)
public Text
getDisplayName()
getDisplayName()
method_5476()
getDisplayName()
public void
setCustomName(Component name)
setCustomName(Component name)
method_5665(class_2561 arg0)
setCustomName(Text name)
public Text
getCustomName()
getCustomName()
method_5797()
getCustomName()
public boolean
hasCustomName()
hasCustomName()
method_16914()
hasCustomName()
public void
setCustomNameVisible(boolean visible)
setCustomNameVisible(boolean visible)
method_5880(boolean arg0)
setCustomNameVisible(boolean visible)
public boolean
isCustomNameVisible()
isCustomNameVisible()
method_5807()
isCustomNameVisible()
public Text
belowNameDisplay()
belowNameDisplay()
method_74193()
getMannequinName()
public boolean
teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera)
teleportTo(ServerLevel level, double x, double y, double z, Set<Relative> relatives, float newYRot, float newXRot, boolean resetCamera)
method_48105(class_3218 arg0, double arg1, double arg2, double arg3, Set<class_2709> arg4, float arg5, float arg6, boolean arg7)
teleport(ServerWorld world, double destX, double destY, double destZ, Set<PositionFlag> flags, float yaw, float pitch, boolean resetCamera)
public void
dismountTo(double x, double y, double z)
dismountTo(double x, double y, double z)
method_33567(double arg0, double arg1, double arg2)
requestTeleportAndDismount(double destX, double destY, double destZ)
public void
teleportTo(double x, double y, double z)
teleportTo(double x, double y, double z)
method_5859(double arg0, double arg1, double arg2)
requestTeleport(double destX, double destY, double destZ)
private void
teleportPassengers()
teleportPassengers()
method_49792()
teleportPassengers()
public void
teleportRelative(double dx, double dy, double dz)
teleportRelative(double dx, double dy, double dz)
method_45166(double arg0, double arg1, double arg2)
requestTeleportOffset(double offsetX, double offsetY, double offsetZ)
public boolean
shouldShowName()
shouldShowName()
method_5733()
shouldRenderName()
public void
onSyncedDataUpdated(List<SynchedEntityData$DataValue<?>> updatedItems)
onSyncedDataUpdated(List<SynchedEntityData$DataValue<?>> updatedItems)
method_48850(List<class_2945$class_7834<?>> arg0)
onDataTrackerUpdate(List<DataTracker$SerializedEntry<?>> arg0)
public void
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
onSyncedDataUpdated(EntityDataAccessor<?> accessor)
method_5674(class_2940<?> arg0)
onTrackedDataSet(TrackedData<?> arg0)
protected void
fixupDimensions()
fixupDimensions()
method_46396()
reinitDimensions()
public void
refreshDimensions()
refreshDimensions()
method_18382()
calculateDimensions()
public boolean
fudgePositionAfterSizeChange(EntityDimensions previousDimensions)
fudgePositionAfterSizeChange(EntityDimensions previousDimensions)
method_60490(class_4048 arg0)
recalculateDimensions(EntityDimensions previous)
public Direction
getDirection()
getDirection()
method_5735()
getHorizontalFacing()
public Direction
getMotionDirection()
getMotionDirection()
method_5755()
getMovementDirection()
protected HoverEvent
createHoverEvent()
createHoverEvent()
method_5769()
getHoverEvent()
public boolean
broadcastToPlayer(ServerPlayer player)
broadcastToPlayer(ServerPlayer player)
method_5680(class_3222 arg0)
canBeSpectated(ServerPlayerEntity spectator)
public final Box
getBoundingBox()
getBoundingBox()
method_5829()
getBoundingBox()
public final void
setBoundingBox(AABB bb)
setBoundingBox(AABB bb)
method_5857(class_238 arg0)
setBoundingBox(Box boundingBox)
public final float
getEyeHeight(Pose pose)
getEyeHeight(Pose pose)
method_18381(class_4050 arg0)
getEyeHeight(EntityPose pose)
public final float
getEyeHeight()
getEyeHeight()
method_5751()
getStandingEyeHeight()
public StackReference
getSlot(int slot)
getSlot(int slot)
method_32318(int arg0)
getStackReference(int arg0)
public boolean
ignoreExplosion(Explosion explosion)
ignoreExplosion(Explosion explosion)
method_5659(class_1927 arg0)
isImmuneToExplosion(Explosion explosion)
public void
startSeenByPlayer(ServerPlayer player)
startSeenByPlayer(ServerPlayer player)
method_5837(class_3222 arg0)
onStartedTrackingBy(ServerPlayerEntity player)
public void
stopSeenByPlayer(ServerPlayer player)
stopSeenByPlayer(ServerPlayer player)
method_5742(class_3222 arg0)
onStoppedTrackingBy(ServerPlayerEntity player)
public float
rotate(Rotation rotation)
rotate(Rotation rotation)
method_5832(class_2470 arg0)
applyRotation(BlockRotation rotation)
public float
mirror(Mirror mirror)
mirror(Mirror mirror)
method_5763(class_2415 arg0)
applyMirror(BlockMirror mirror)
public ProjectileDeflection
deflection(Projectile projectile)
deflection(Projectile projectile)
method_56071(class_1676 arg0)
getProjectileDeflection(ProjectileEntity projectile)
public LivingEntity
getControllingPassenger()
getControllingPassenger()
method_5642()
getControllingPassenger()
public final boolean
hasControllingPassenger()
hasControllingPassenger()
method_42148()
hasControllingPassenger()
public final List<Entity>
getPassengers()
getPassengers()
method_5685()
getPassengerList()
public Entity
getFirstPassenger()
getFirstPassenger()
method_31483()
getFirstPassenger()
public boolean
hasPassenger(Entity entity)
hasPassenger(Entity entity)
method_5626(class_1297 arg0)
hasPassenger(Entity passenger)
public boolean
hasPassenger(Predicate<Entity> test)
hasPassenger(Predicate<Entity> test)
method_5703(Predicate<class_1297> arg0)
hasPassenger(Predicate<Entity> predicate)
private Stream<Entity>
getIndirectPassengersStream()
getIndirectPassengersStream()
method_31484()
streamIntoPassengers()
public Stream<Entity>
getSelfAndPassengers()
getSelfAndPassengers()
method_24204()
streamSelfAndPassengers()
public Stream<Entity>
getPassengersAndSelf()
getPassengersAndSelf()
method_31748()
streamPassengersAndSelf()
public Iterable<Entity>
getIndirectPassengers()
getIndirectPassengers()
method_5736()
getPassengersDeep()
public int
countPlayerPassengers()
countPlayerPassengers()
method_54757()
getPlayerPassengers()
public boolean
hasExactlyOnePlayerPassenger()
hasExactlyOnePlayerPassenger()
method_5817()
hasPlayerRider()
public Entity
getRootVehicle()
getRootVehicle()
method_5668()
getRootVehicle()
public boolean
isPassengerOfSameVehicle(Entity other)
isPassengerOfSameVehicle(Entity other)
method_5794(class_1297 arg0)
isConnectedThroughVehicle(Entity entity)
public boolean
hasIndirectPassenger(Entity entity)
hasIndirectPassenger(Entity entity)
method_5821(class_1297 arg0)
hasPassengerDeep(Entity passenger)
public final boolean
isLocalInstanceAuthoritative()
isLocalInstanceAuthoritative()
method_66247()
isLogicalSideForUpdatingMovement()
protected boolean
isLocalClientAuthoritative()
isLocalClientAuthoritative()
method_66248()
isControlledByMainPlayer()
public boolean
isClientAuthoritative()
isClientAuthoritative()
method_65038()
isControlledByPlayer()
public boolean
canSimulateMovement()
canSimulateMovement()
method_66249()
canMoveVoluntarily()
public boolean
isEffectiveAi()
isEffectiveAi()
method_6034()
canActVoluntarily()
protected static Vec3d
getCollisionHorizontalEscapeVector(double colliderWidth, double collidingWidth, float directionDegrees)
getCollisionHorizontalEscapeVector(double colliderWidth, double collidingWidth, float directionDegrees)
method_24826(double arg0, double arg1, float arg2)
getPassengerDismountOffset(double vehicleWidth, double passengerWidth, float passengerYaw)
public Vec3d
getDismountLocationForPassenger(LivingEntity passenger)
getDismountLocationForPassenger(LivingEntity passenger)
method_24829(class_1309 arg0)
updatePassengerForDismount(LivingEntity passenger)
public Entity
getVehicle()
getVehicle()
method_5854()
getVehicle()
public Entity
getControlledVehicle()
getControlledVehicle()
method_49694()
getControllingVehicle()
public PistonBehavior
getPistonPushReaction()
getPistonPushReaction()
method_5657()
getPistonBehavior()
public SoundCategory
getSoundSource()
getSoundSource()
method_5634()
getSoundCategory()
protected int
getFireImmuneTicks()
getFireImmuneTicks()
method_5676()
getBurningDuration()
public ServerCommandSource
createCommandSourceStackForNameResolution(ServerLevel level)
createCommandSourceStackForNameResolution(ServerLevel level)
method_5671(class_3218 arg0)
getCommandSource(ServerWorld world)
public void
lookAt(EntityAnchorArgument$Anchor anchor, Vec3 pos)
lookAt(EntityAnchorArgument$Anchor anchor, Vec3 pos)
method_5702(class_2183$class_2184 arg0, class_243 arg1)
lookAt(EntityAnchorArgumentType$EntityAnchor anchorPoint, Vec3d target)
public float
getPreciseBodyRotation(float partial)
getPreciseBodyRotation(float partial)
method_60951(float arg0)
lerpYaw(float tickProgress)
public boolean
touchingUnloadedChunk()
touchingUnloadedChunk()
method_33724()
isRegionUnloaded()
public double
getFluidHeight(TagKey<Fluid> type)
getFluidHeight(TagKey<Fluid> type)
method_5861(class_6862<class_3611> arg0)
getFluidHeight(TagKey<Fluid> fluid)
public double
getFluidJumpThreshold()
getFluidJumpThreshold()
method_29241()
getSwimHeight()
public final float
getBbWidth()
getBbWidth()
method_17681()
getWidth()
public final float
getBbHeight()
getBbHeight()
method_17682()
getHeight()
public Packet<ClientPlayPacketListener>
getAddEntityPacket(ServerEntity serverEntity)
getAddEntityPacket(ServerEntity serverEntity)
method_18002(class_3231 arg0)
createSpawnPacket(EntityTrackerEntry entityTrackerEntry)
public EntityDimensions
getDimensions(Pose pose)
getDimensions(Pose pose)
method_18377(class_4050 arg0)
getDimensions(EntityPose pose)
public final EntityAttachments
getAttachments()
getAttachments()
method_56072()
getAttachments()
public Vec3d
position()
position()
method_73189()
getEntityPos()
public Vec3d
trackingPosition()
trackingPosition()
method_43390()
getSyncedPos()
public BlockPos
blockPosition()
blockPosition()
method_24515()
getBlockPos()
public BlockState
getInBlockState()
getInBlockState()
method_55667()
getBlockStateAtPos()
public ChunkPos
chunkPosition()
chunkPosition()
method_31476()
getChunkPos()
public Vec3d
getDeltaMovement()
getDeltaMovement()
method_18798()
getVelocity()
public void
setDeltaMovement(Vec3 deltaMovement)
setDeltaMovement(Vec3 deltaMovement)
method_18799(class_243 arg0)
setVelocity(Vec3d velocity)
public void
addDeltaMovement(Vec3 momentum)
addDeltaMovement(Vec3 momentum)
method_45319(class_243 arg0)
addVelocityInternal(Vec3d velocity)
public void
setDeltaMovement(double xd, double yd, double zd)
setDeltaMovement(double xd, double yd, double zd)
method_18800(double arg0, double arg1, double arg2)
setVelocity(double x, double y, double z)
public final int
getBlockX()
getBlockX()
method_31477()
getBlockX()
public final double
getX()
getX()
method_23317()
getX()
public double
getX(double progress)
getX(double progress)
method_23316(double arg0)
getBodyX(double widthScale)
public double
getRandomX(double spread)
getRandomX(double spread)
method_23322(double arg0)
getParticleX(double widthScale)
public final int
getBlockY()
getBlockY()
method_31478()
getBlockY()
public final double
getY()
getY()
method_23318()
getY()
public double
getY(double progress)
getY(double progress)
method_23323(double arg0)
getBodyY(double heightScale)
public double
getRandomY(double spread)
getRandomY(double spread)
method_1_2570(double arg0)
getRandomYAroundFeet(double heightScale)
public double
getRandomY()
getRandomY()
method_23319()
getRandomBodyY()
public double
getEyeY()
getEyeY()
method_23320()
getEyeY()
public final int
getBlockZ()
getBlockZ()
method_31479()
getBlockZ()
public final double
getZ()
getZ()
method_23321()
getZ()
public double
getZ(double progress)
getZ(double progress)
method_23324(double arg0)
getBodyZ(double widthScale)
public double
getRandomZ(double spread)
getRandomZ(double spread)
method_23325(double arg0)
getParticleZ(double widthScale)
public final void
setPosRaw(double x, double y, double z)
setPosRaw(double x, double y, double z)
method_23327(double arg0, double arg1, double arg2)
setPos(double x, double y, double z)
public void
checkDespawn()
checkDespawn()
method_5982()
checkDespawn()
public Vec3d[]
getQuadLeashHolderOffsets()
getQuadLeashHolderOffsets()
method_70985()
getHeldQuadLeashOffsets()
public boolean
supportQuadLeashAsHolder()
supportQuadLeashAsHolder()
method_70986()
hasQuadLeashAttachmentPoints()
public void
notifyLeashHolder(Leashable entity)
notifyLeashHolder(Leashable entity)
method_70980(class_9817 arg0)
tickHeldLeash(Leashable leashedEntity)
public void
notifyLeasheeRemoved(Leashable entity)
notifyLeasheeRemoved(Leashable entity)
method_70982(class_9817 arg0)
onHeldLeashUpdate(Leashable heldLeashable)
public Vec3d
getRopeHoldPosition(float partialTickTime)
getRopeHoldPosition(float partialTickTime)
method_30951(float arg0)
getLeashPos(float tickProgress)
public void
recreateFromPacket(ClientboundAddEntityPacket packet)
recreateFromPacket(ClientboundAddEntityPacket packet)
method_31471(class_2604 arg0)
onSpawnPacket(EntitySpawnS2CPacket packet)
public ItemStack
getPickResult()
getPickResult()
method_31480()
getPickBlockStack()
public void
setIsInPowderSnow(boolean isInPowderSnow)
setIsInPowderSnow(boolean isInPowderSnow)
method_32319(boolean arg0)
setInPowderSnow(boolean inPowderSnow)
public boolean
canFreeze()
canFreeze()
method_32316()
canFreeze()
public boolean
isFreezing()
isFreezing()
method_40071()
shouldEscapePowderSnow()
public float
getYRot()
getYRot()
method_36454()
getYaw()
public float
getVisualRotationYInDegrees()
getVisualRotationYInDegrees()
method_73188()
getBodyYaw()
public void
setYRot(float yRot)
setYRot(float yRot)
method_36456(float arg0)
setYaw(float yaw)
public float
getXRot()
getXRot()
method_36455()
getPitch()
public void
setXRot(float xRot)
setXRot(float xRot)
method_36457(float arg0)
setPitch(float pitch)
public boolean
canSprint()
canSprint()
method_48155()
canSprintAsVehicle()
public float
maxUpStep()
maxUpStep()
method_49476()
getStepHeight()
public void
onExplosionHit(Entity explosionCausedBy)
onExplosionHit(Entity explosionCausedBy)
method_56918(class_1297 arg0)
onExplodedBy(Entity entity)
public final boolean
isRemoved()
isRemoved()
method_31481()
isRemoved()
public Entity$RemovalReason
getRemovalReason()
getRemovalReason()
method_35049()
getRemovalReason()
public final void
setRemoved(Entity$RemovalReason reason)
setRemoved(Entity$RemovalReason reason)
method_31745(class_1297$class_5529 arg0)
setRemoved(Entity$RemovalReason arg0)
protected void
unsetRemoved()
unsetRemoved()
method_31482()
unsetRemoved()
public void
setLevelCallback(EntityInLevelCallback levelCallback)
setLevelCallback(EntityInLevelCallback levelCallback)
method_31744(class_5569 arg0)
setChangeListener(EntityChangeListener arg0)
public boolean
shouldBeSaved()
shouldBeSaved()
method_31746()
shouldSave()
public boolean
isAlwaysTicking()
isAlwaysTicking()
method_31747()
isPlayer()
public boolean
mayInteract(ServerLevel level, BlockPos pos)
mayInteract(ServerLevel level, BlockPos pos)
method_36971(class_3218 arg0, class_2338 arg1)
canModifyAt(ServerWorld world, BlockPos pos)
public boolean
isFlyingVehicle()
isFlyingVehicle()
method_70987()
isFlyingVehicle()
public World
level()
level()
method_73183()
getEntityWorld()
protected void
setLevel(Level level)
setLevel(Level level)
method_51502(class_1937 arg0)
setWorld(World world)
public DamageSources
damageSources()
damageSources()
method_48923()
getDamageSources()
public DynamicRegistryManager
registryAccess()
registryAccess()
method_56673()
getRegistryManager()
protected void
lerpPositionAndRotationStep(int stepsToTarget, double targetX, double targetY, double targetZ, double targetYRot, double targetXRot)
lerpPositionAndRotationStep(int stepsToTarget, double targetX, double targetY, double targetZ, double targetYRot, double targetXRot)
method_52532(int arg0, double arg1, double arg2, double arg3, double arg4, double arg5)
lerpPosAndRotation(int step, double x, double y, double z, double yaw, double pitch)
public Random
getRandom()
getRandom()
method_59922()
getRandom()
public Vec3d
getKnownMovement()
getKnownMovement()
method_60478()
getMovement()
public Vec3d
getKnownSpeed()
getKnownSpeed()
method_76333()
getKineticAttackMovement()
public ItemStack
getWeaponItem()
getWeaponItem()
method_59958()
getWeaponStack()
public Optional<RegistryKey<LootTable>>
getLootTable()
getLootTable()
method_5991()
getLootTableKey()
protected void
applyImplicitComponents(DataComponentGetter components)
applyImplicitComponents(DataComponentGetter components)
method_66649(class_9473 arg0)
copyComponentsFrom(ComponentsAccess from)
public final void
applyComponentsFromItemStack(ItemStack stack)
applyComponentsFromItemStack(ItemStack stack)
method_66652(class_1799 arg0)
copyComponentsFrom(ItemStack stack)
public <T> T
get(DataComponentType<? extends T> type)
get(DataComponentType<? extends T> type)
method_58694(class_9331<? extends T> arg0)
get(ComponentType<? extends T> arg0)
protected static <T> T
castComponentValue(DataComponentType<T> type, Object value)
castComponentValue(DataComponentType<T> type, Object value)
method_66651(class_9331<T> arg0, Object arg1)
castComponentValue(ComponentType<T> type, Object value)
public <T> void
setComponent(DataComponentType<T> type, T value)
setComponent(DataComponentType<T> type, T value)
method_66653(class_9331<T> arg0, T arg1)
setComponent(ComponentType<T> type, T value)
protected <T> boolean
applyImplicitComponent(DataComponentType<T> type, T value)
applyImplicitComponent(DataComponentType<T> type, T value)
method_66654(class_9331<T> arg0, T arg1)
setApplicableComponent(ComponentType<T> type, T value)
protected <T> boolean
applyImplicitComponentIfPresent(DataComponentGetter components, DataComponentType<T> type)
applyImplicitComponentIfPresent(DataComponentGetter components, DataComponentType<T> type)
method_66650(class_9473 arg0, class_9331<T> arg1)
copyComponentFrom(ComponentsAccess from, ComponentType<T> type)
public ErrorReporter$Context
problemPath()
problemPath()
method_71370()
getErrorReporterContext()
public void
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
registerDebugValues(ServerLevel level, DebugValueSource$Registration registration)
method_74589(class_3218 arg0, class_12023$class_12024 arg1)
registerTracking(ServerWorld arg0, DebugTrackable$Tracker arg1)
public Box
getFluidInteractionBox()
getFluidInteractionBox()
method_1_2465()
getFluidCollisionBox()
protected Box
modifyPassengerFluidInteractionBox(AABB passengerBox)
modifyPassengerFluidInteractionBox(AABB passengerBox)
method_1_2466(class_238 arg0)
adjustFluidCollisionBoxOfPassenger(Box passengerBox)