> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/newgen/api/net/minecraft/world/entity/livingentity.md).

# LivingEntity

An entity with health: mobs and players.

### Extends

* [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

### Extended by

* [`ArmorStand`](/newgen/api/net/minecraft/world/entity/decoration/armorstand.md)
* [`Mob`](/newgen/api/net/minecraft/world/entity/mob.md)
* [`Player`](/newgen/api/net/minecraft/world/entity/player/player.md)

### Properties

#### absorptionAmount

> `readonly` **absorptionAmount**: `number`

Extra hearts from absorption.

***

#### activeEffects

> `readonly` **activeEffects**: [`MobEffectInstance`](/newgen/api/net/minecraft/world/effect/mobeffectinstance.md)\[]

The status effects on the entity.

***

#### airSupply

> `readonly` **airSupply**: `number`

The remaining air in ticks.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`airSupply`](/newgen/api/net/minecraft/world/entity/entity.md#airsupply)

***

#### armorValue

> `readonly` **armorValue**: `number`

The armor points.

***

#### arrowCount

> `readonly` **arrowCount**: `number`

Arrows stuck in the entity.

***

#### bbHeight

> `readonly` **bbHeight**: `number`

The height of the collision box in blocks.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`bbHeight`](/newgen/api/net/minecraft/world/entity/entity.md#bbheight)

***

#### bbWidth

> `readonly` **bbWidth**: `number`

The width of the collision box in blocks.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`bbWidth`](/newgen/api/net/minecraft/world/entity/entity.md#bbwidth)

***

#### blockPosBelow

> `readonly` **blockPosBelow**: [`BlockPos`](/newgen/api/net/minecraft/core/blockpos.md)

The block whose properties affect this entity's movement, just below its feet.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`blockPosBelow`](/newgen/api/net/minecraft/world/entity/entity.md#blockposbelow)

***

#### blockPosition

> `readonly` **blockPosition**: [`BlockPos`](/newgen/api/net/minecraft/core/blockpos.md)

The block the entity is in.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`blockPosition`](/newgen/api/net/minecraft/world/entity/entity.md#blockposition)

***

#### boundingBox

> `readonly` **boundingBox**: [`AABB`](/newgen/api/net/minecraft/world/phys/aabb.md)

The collision box.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`boundingBox`](/newgen/api/net/minecraft/world/entity/entity.md#boundingbox)

***

#### controllingPassenger

> `readonly` **controllingPassenger**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The living entity steering this one, or null.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`controllingPassenger`](/newgen/api/net/minecraft/world/entity/entity.md#controllingpassenger)

***

#### customName

> `readonly` **customName**: `string`

The custom name, or null when the entity has none.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`customName`](/newgen/api/net/minecraft/world/entity/entity.md#customname)

***

#### deathTime

> `readonly` **deathTime**: `number`

Counts up from 0 to 20 while the death animation plays.

***

#### deltaMovement

> `readonly` **deltaMovement**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The velocity in blocks per tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`deltaMovement`](/newgen/api/net/minecraft/world/entity/entity.md#deltamovement)

***

#### eyeHeight

> `readonly` **eyeHeight**: `number`

The height of the eyes above the feet in blocks, for the current pose.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`eyeHeight`](/newgen/api/net/minecraft/world/entity/entity.md#eyeheight)

***

#### eyePosition

> `readonly` **eyePosition**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The eye position this tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`eyePosition`](/newgen/api/net/minecraft/world/entity/entity.md#eyeposition)

***

#### eyeY

> `readonly` **eyeY**: `number`

The Y position of the eyes.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`eyeY`](/newgen/api/net/minecraft/world/entity/entity.md#eyey)

***

#### fallDistance

> `readonly` **fallDistance**: `number`

How far the entity has fallen since last on the ground.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`fallDistance`](/newgen/api/net/minecraft/world/entity/entity.md#falldistance)

***

#### fallFlyingTicks

> `readonly` **fallFlyingTicks**: `number`

Ticks spent gliding.

***

#### health

> `readonly` **health**: `number`

The current health.

***

#### horizontalCollision

> `readonly` **horizontalCollision**: `boolean`

Whether the entity walked into a wall last tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`horizontalCollision`](/newgen/api/net/minecraft/world/entity/entity.md#horizontalcollision)

***

#### hurtDuration

> `readonly` **hurtDuration**: `number`

The value hurtTime starts counting down from after a hit, in ticks.

***

#### hurtTime

> `readonly` **hurtTime**: `number`

Counts down from 10 after being hurt.

***

#### id

> `readonly` **id**: `number`

The network id of this entity.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`id`](/newgen/api/net/minecraft/world/entity/entity.md#id)

***

#### invulnerableTime

> `readonly` **invulnerableTime**: `number`

Ticks of damage immunity left after being hurt.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`invulnerableTime`](/newgen/api/net/minecraft/world/entity/entity.md#invulnerabletime)

***

#### jumpBoostPower

> `readonly` **jumpBoostPower**: `number`

The extra jump power from the jump boost effect.

***

#### jumping

> `readonly` **jumping**: `boolean`

Whether the entity is trying to jump.

***

#### lastHurtByMob

> `readonly` **lastHurtByMob**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The entity that last hurt this one, or null.

***

#### lastHurtMob

> `readonly` **lastHurtMob**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The entity this one last hurt, or null.

***

#### lookAngle

> `readonly` **lookAngle**: [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The unit vector the entity looks along.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`lookAngle`](/newgen/api/net/minecraft/world/entity/entity.md#lookangle)

***

#### mainHandItem

> `readonly` **mainHandItem**: [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item in the main hand.

***

#### maxAbsorption

> `readonly` **maxAbsorption**: `number`

The most absorption the entity can have.

***

#### maxHealth

> `readonly` **maxHealth**: `number`

The maximum health.

***

#### moveDist

> `readonly` **moveDist**: `number`

How far the entity has moved on the ground in total, used for step sounds and bobbing.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`moveDist`](/newgen/api/net/minecraft/world/entity/entity.md#movedist)

***

#### name

> `readonly` **name**: `string`

The display name, without formatting.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`name`](/newgen/api/net/minecraft/world/entity/entity.md#name)

***

#### noPhysics

> `readonly` **noPhysics**: `boolean`

Whether the entity ignores collisions with blocks.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`noPhysics`](/newgen/api/net/minecraft/world/entity/entity.md#nophysics)

***

#### offhandItem

> `readonly` **offhandItem**: [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item in the off hand.

***

#### onGround

> `readonly` **onGround**: `boolean`

Whether the entity stands on a block.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`onGround`](/newgen/api/net/minecraft/world/entity/entity.md#onground)

***

#### passengers

> `readonly` **passengers**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)\[]

The entities riding this one.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`passengers`](/newgen/api/net/minecraft/world/entity/entity.md#passengers)

***

#### pose

> `readonly` **pose**: [`Pose`](/newgen/api/enum_types/pose.md)

The current pose.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`pose`](/newgen/api/net/minecraft/world/entity/entity.md#pose)

***

#### remainingFireTicks

> `readonly` **remainingFireTicks**: `number`

Ticks the entity keeps burning for, 0 when not on fire.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`remainingFireTicks`](/newgen/api/net/minecraft/world/entity/entity.md#remainingfireticks)

***

#### rootVehicle

> `readonly` **rootVehicle**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The bottom entity of the vehicle stack this one rides, or itself.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`rootVehicle`](/newgen/api/net/minecraft/world/entity/entity.md#rootvehicle)

***

#### scale

> `readonly` **scale**: `number`

The size multiplier of the entity.

***

#### scoreboardName

> `readonly` **scoreboardName**: `string`

The name the scoreboard knows this entity by: the player name, or the UUID.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`scoreboardName`](/newgen/api/net/minecraft/world/entity/entity.md#scoreboardname)

***

#### shiftKeyDown

> `readonly` **shiftKeyDown**: `boolean`

Whether the entity is sneaking.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`shiftKeyDown`](/newgen/api/net/minecraft/world/entity/entity.md#shiftkeydown)

***

#### speed

> `readonly` **speed**: `number`

The movement speed attribute scaled for the tick, in blocks per tick.

***

#### sprinting

> `readonly` **sprinting**: `boolean`

Whether the entity is sprinting.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`sprinting`](/newgen/api/net/minecraft/world/entity/entity.md#sprinting)

***

#### swinging

> `readonly` **swinging**: `boolean`

Whether the swing animation is playing.

***

#### swingTime

> `readonly` **swingTime**: `number`

Ticks into the current swing animation.

***

#### teamColor

> `readonly` **teamColor**: `number`

The team's color as 0xRRGGBB, or 0xFFFFFF when there is none.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`teamColor`](/newgen/api/net/minecraft/world/entity/entity.md#teamcolor)

***

#### teamName

> `readonly` **teamName**: `string`

The scoreboard team this entity is on, or null.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`teamName`](/newgen/api/net/minecraft/world/entity/entity.md#teamname)

***

#### tickCount

> `readonly` **tickCount**: `number`

Ticks this entity has existed for on the client.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`tickCount`](/newgen/api/net/minecraft/world/entity/entity.md#tickcount)

***

#### ticksFrozen

> `readonly` **ticksFrozen**: `number`

Ticks spent in powder snow.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`ticksFrozen`](/newgen/api/net/minecraft/world/entity/entity.md#ticksfrozen)

***

#### ticksUsingItem

> `readonly` **ticksUsingItem**: `number`

How many ticks the current item has been in use.

***

#### type

> `readonly` **type**: `string`

The entity type id, e.g. "minecraft:zombie".

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`type`](/newgen/api/net/minecraft/world/entity/entity.md#type)

***

#### usedItemHand

> `readonly` **usedItemHand**: [`InteractionHand`](/newgen/api/enum_types/interactionhand.md)

The hand the item in use is held in. Only meaningful while isUsingItem is true.

***

#### useItem

> `readonly` **useItem**: [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item being used, or an empty stack when none is.

***

#### useItemRemainingTicks

> `readonly` **useItemRemainingTicks**: `number`

Ticks left until the used item finishes.

***

#### uuid

> `readonly` **uuid**: `string`

The UUID of this entity, as a string.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`uuid`](/newgen/api/net/minecraft/world/entity/entity.md#uuid)

***

#### vehicle

> `readonly` **vehicle**: [`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The entity this one rides, or null.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`vehicle`](/newgen/api/net/minecraft/world/entity/entity.md#vehicle)

***

#### verticalCollision

> `readonly` **verticalCollision**: `boolean`

Whether the entity hit a ceiling or floor last move.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`verticalCollision`](/newgen/api/net/minecraft/world/entity/entity.md#verticalcollision)

***

#### x

> `readonly` **x**: `number`

The X position.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`x`](/newgen/api/net/minecraft/world/entity/entity.md#x)

***

#### xo

> `readonly` **xo**: `number`

The X position last tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`xo`](/newgen/api/net/minecraft/world/entity/entity.md#xo)

***

#### xRot

> **xRot**: `number`

The vertical rotation (pitch) in degrees, positive is down.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`xRot`](/newgen/api/net/minecraft/world/entity/entity.md#xrot)

***

#### xRotO

> `readonly` **xRotO**: `number`

The vertical rotation (pitch) last tick in degrees.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`xRotO`](/newgen/api/net/minecraft/world/entity/entity.md#xroto)

***

#### xxa

> `readonly` **xxa**: `number`

The sideways movement input, positive to the left.

***

#### y

> `readonly` **y**: `number`

The Y position, at the entity's feet.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`y`](/newgen/api/net/minecraft/world/entity/entity.md#y)

***

#### yBodyRot

> `readonly` **yBodyRot**: `number`

The horizontal rotation of the body in degrees.

***

#### yHeadRot

> `readonly` **yHeadRot**: `number`

The horizontal rotation of the head in degrees.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`yHeadRot`](/newgen/api/net/minecraft/world/entity/entity.md#yheadrot)

***

#### yo

> `readonly` **yo**: `number`

The Y position last tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`yo`](/newgen/api/net/minecraft/world/entity/entity.md#yo)

***

#### yRot

> **yRot**: `number`

The horizontal rotation (yaw) in degrees.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`yRot`](/newgen/api/net/minecraft/world/entity/entity.md#yrot)

***

#### yRotO

> `readonly` **yRotO**: `number`

The horizontal rotation (yaw) last tick in degrees.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`yRotO`](/newgen/api/net/minecraft/world/entity/entity.md#yroto)

***

#### z

> `readonly` **z**: `number`

The Z position.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`z`](/newgen/api/net/minecraft/world/entity/entity.md#z)

***

#### zo

> `readonly` **zo**: `number`

The Z position last tick.

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`zo`](/newgen/api/net/minecraft/world/entity/entity.md#zo)

***

#### zza

> `readonly` **zza**: `number`

The forward movement input, negative when moving backward.

### Methods

#### distanceTo()

> **distanceTo**(`other`): `number`

The distance between the feet of two entities.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The other entity.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`distanceTo`](/newgen/api/net/minecraft/world/entity/entity.md#distanceto)

***

#### distanceToPos()

> **distanceToPos**(`point`): `number`

The distance from the feet to a point.

**Parameters**

**point**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The point.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`distanceToPos`](/newgen/api/net/minecraft/world/entity/entity.md#distancetopos)

***

#### distanceToSqr()

> **distanceToSqr**(`other`): `number`

The squared distance between the feet of two entities.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The other entity.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`distanceToSqr`](/newgen/api/net/minecraft/world/entity/entity.md#distancetosqr)

***

#### distanceToSqrPos()

> **distanceToSqrPos**(`x`, `y`, `z`): `number`

The squared distance from the feet to a point.

**Parameters**

**x**

`number`

X.

**y**

`number`

Y.

**z**

`number`

Z.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`distanceToSqrPos`](/newgen/api/net/minecraft/world/entity/entity.md#distancetosqrpos)

***

#### getArmorCoverPercentage()

> **getArmorCoverPercentage**(): `number`

The share of armor slots filled, 0 to 1.

**Returns**

`number`

***

#### getAttackAnim()

> **getAttackAnim**(`partialTicks`): `number`

How far the swing animation has progressed, 0 to 1.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

`number`

***

#### getAttributeBaseValue()

> **getAttributeBaseValue**(`id`): `number`

The attribute's value before modifiers, or 0 when the entity lacks it.

**Parameters**

**id**

`string`

The attribute id, e.g. "minecraft:movement\_speed".

**Returns**

`number`

**See**

[Attribute ids](https://minecraft.wiki/w/Attribute#List_of_attributes)

***

#### getAttributeValue()

> **getAttributeValue**(`id`): `number`

The attribute's value with all modifiers applied, or 0 when the entity lacks it.

**Parameters**

**id**

`string`

The attribute id, e.g. "minecraft:movement\_speed".

**Returns**

`number`

**See**

[Attribute ids](https://minecraft.wiki/w/Attribute#List_of_attributes)

***

#### getEffect()

> **getEffect**(`id`): [`MobEffectInstance`](/newgen/api/net/minecraft/world/effect/mobeffectinstance.md)

The status effect of a kind on the entity, or null.

**Parameters**

**id**

`string`

The effect id, e.g. "minecraft:speed".

**Returns**

[`MobEffectInstance`](/newgen/api/net/minecraft/world/effect/mobeffectinstance.md)

**See**

[Effect ids](https://minecraft.wiki/w/Java_Edition_data_values/Effects)

***

#### getEyePosition()

> **getEyePosition**(`partialTicks`): [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The eye position, interpolated for rendering.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`getEyePosition`](/newgen/api/net/minecraft/world/entity/entity.md#geteyeposition)

***

#### getItemBySlot()

> **getItemBySlot**(`slot`): [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item in an equipment slot, such as armor.

**Parameters**

**slot**

[`EquipmentSlot`](/newgen/api/enum_types/equipmentslot.md)

The slot.

**Returns**

[`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

***

#### getItemInHand()

> **getItemInHand**(`hand`): [`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

The item held in a hand.

**Parameters**

**hand**

[`InteractionHand`](/newgen/api/enum_types/interactionhand.md)

The hand.

**Returns**

[`ItemStack`](/newgen/api/net/minecraft/world/item/itemstack.md)

***

#### getPosition()

> **getPosition**(`partialTicks`): [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The position, interpolated for rendering.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`getPosition`](/newgen/api/net/minecraft/world/entity/entity.md#getposition)

***

#### getViewVector()

> **getViewVector**(`partialTicks`): [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The unit vector the entity looks along, interpolated for rendering.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`getViewVector`](/newgen/api/net/minecraft/world/entity/entity.md#getviewvector)

***

#### getXRotInterpolated()

> **getXRotInterpolated**(`partialTicks`): `number`

The vertical rotation in degrees, interpolated for rendering.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`getXRotInterpolated`](/newgen/api/net/minecraft/world/entity/entity.md#getxrotinterpolated)

***

#### getYRotInterpolated()

> **getYRotInterpolated**(`partialTicks`): `number`

The horizontal rotation in degrees, interpolated for rendering.

**Parameters**

**partialTicks**

`number`

The partial tick, from a render event.

**Returns**

`number`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`getYRotInterpolated`](/newgen/api/net/minecraft/world/entity/entity.md#getyrotinterpolated)

***

#### hasAttribute()

> **hasAttribute**(`id`): `boolean`

Whether the entity has an attribute.

**Parameters**

**id**

`string`

The attribute id, e.g. "minecraft:movement\_speed".

**Returns**

`boolean`

**See**

[Attribute ids](https://minecraft.wiki/w/Attribute#List_of_attributes)

***

#### hasEffect()

> **hasEffect**(`id`): `boolean`

Whether the entity has a status effect.

**Parameters**

**id**

`string`

The effect id, e.g. "minecraft:speed".

**Returns**

`boolean`

**See**

[Effect ids](https://minecraft.wiki/w/Java_Edition_data_values/Effects)

***

#### hasLineOfSight()

> **hasLineOfSight**(`other`): `boolean`

Whether a ray from this entity's eyes to the other entity's eyes hits no block.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The other entity.

**Returns**

`boolean`

***

#### hasPassenger()

> **hasPassenger**(`other`): `boolean`

Whether the given entity rides this one.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The entity.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`hasPassenger`](/newgen/api/net/minecraft/world/entity/entity.md#haspassenger)

***

#### isAlive()

> **isAlive**(): `boolean`

Whether the entity is alive and not removed.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isAlive`](/newgen/api/net/minecraft/world/entity/entity.md#isalive)

***

#### isAlliedTo()

> **isAlliedTo**(`other`): `boolean`

Whether the other entity is on the same scoreboard team.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The other entity.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isAlliedTo`](/newgen/api/net/minecraft/world/entity/entity.md#isalliedto)

***

#### isAttackable()

> **isAttackable**(): `boolean`

Whether the entity can be attacked.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isAttackable`](/newgen/api/net/minecraft/world/entity/entity.md#isattackable)

***

#### isAutoSpinAttack()

> **isAutoSpinAttack**(): `boolean`

Whether the entity is riptiding.

**Returns**

`boolean`

***

#### isBaby()

> **isBaby**(): `boolean`

Whether the entity is a baby.

**Returns**

`boolean`

***

#### isBlocking()

> **isBlocking**(): `boolean`

Whether a shield is raised.

**Returns**

`boolean`

***

#### isCloseEnough()

> **isCloseEnough**(`other`, `distance`): `boolean`

Whether the other entity is within a distance of this one's feet.

**Parameters**

**other**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md)

The other entity.

**distance**

`number`

The distance in blocks.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isCloseEnough`](/newgen/api/net/minecraft/world/entity/entity.md#iscloseenough)

***

#### isCrouching()

> **isCrouching**(): `boolean`

Whether the entity is in the crouching pose.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isCrouching`](/newgen/api/net/minecraft/world/entity/entity.md#iscrouching)

***

#### isCurrentlyGlowing()

> **isCurrentlyGlowing**(): `boolean`

Whether the entity has the glowing outline, from the effect or spectral arrows.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isCurrentlyGlowing`](/newgen/api/net/minecraft/world/entity/entity.md#iscurrentlyglowing)

***

#### isCustomNameVisible()

> **isCustomNameVisible**(): `boolean`

Whether the custom name shows above the entity.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isCustomNameVisible`](/newgen/api/net/minecraft/world/entity/entity.md#iscustomnamevisible)

***

#### isDeadOrDying()

> **isDeadOrDying**(): `boolean`

Whether the entity has no health left.

**Returns**

`boolean`

***

#### isFallFlying()

> **isFallFlying**(): `boolean`

Whether the entity glides with an elytra.

**Returns**

`boolean`

***

#### isFree()

> **isFree**(`x`, `y`, `z`): `boolean`

Whether the collision box moved by an offset would be free of blocks.

**Parameters**

**x**

`number`

X offset.

**y**

`number`

Y offset.

**z**

`number`

Z offset.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isFree`](/newgen/api/net/minecraft/world/entity/entity.md#isfree)

***

#### isInLava()

> **isInLava**(): `boolean`

Whether the entity is in lava.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInLava`](/newgen/api/net/minecraft/world/entity/entity.md#isinlava)

***

#### isInLiquid()

> **isInLiquid**(): `boolean`

Whether the entity is in water or lava.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInLiquid`](/newgen/api/net/minecraft/world/entity/entity.md#isinliquid)

***

#### isInPowderSnow()

> **isInPowderSnow**(): `boolean`

Whether the entity is in powder snow.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInPowderSnow`](/newgen/api/net/minecraft/world/entity/entity.md#isinpowdersnow)

***

#### isInvisible()

> **isInvisible**(): `boolean`

Whether the entity is invisible.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInvisible`](/newgen/api/net/minecraft/world/entity/entity.md#isinvisible)

***

#### isInvulnerable()

> **isInvulnerable**(): `boolean`

Whether the entity takes no damage at all.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInvulnerable`](/newgen/api/net/minecraft/world/entity/entity.md#isinvulnerable)

***

#### isInWall()

> **isInWall**(): `boolean`

Whether the entity's eyes are inside a solid block.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInWall`](/newgen/api/net/minecraft/world/entity/entity.md#isinwall)

***

#### isInWater()

> **isInWater**(): `boolean`

Whether the entity is in water.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInWater`](/newgen/api/net/minecraft/world/entity/entity.md#isinwater)

***

#### isInWaterOrRain()

> **isInWaterOrRain**(): `boolean`

Whether the entity is in water or being rained on.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isInWaterOrRain`](/newgen/api/net/minecraft/world/entity/entity.md#isinwaterorrain)

***

#### isNoGravity()

> **isNoGravity**(): `boolean`

Whether gravity does not apply to the entity.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isNoGravity`](/newgen/api/net/minecraft/world/entity/entity.md#isnogravity)

***

#### isOnFire()

> **isOnFire**(): `boolean`

Whether the entity is burning.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isOnFire`](/newgen/api/net/minecraft/world/entity/entity.md#isonfire)

***

#### isOnRails()

> **isOnRails**(): `boolean`

Whether the entity is on a rail block.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isOnRails`](/newgen/api/net/minecraft/world/entity/entity.md#isonrails)

***

#### isPassenger()

> **isPassenger**(): `boolean`

Whether the entity rides another.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isPassenger`](/newgen/api/net/minecraft/world/entity/entity.md#ispassenger)

***

#### isPushable()

> **isPushable**(): `boolean`

Whether other entities can push this one.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isPushable`](/newgen/api/net/minecraft/world/entity/entity.md#ispushable)

***

#### isRemoved()

> **isRemoved**(): `boolean`

Whether the entity left the world.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isRemoved`](/newgen/api/net/minecraft/world/entity/entity.md#isremoved)

***

#### isSilent()

> **isSilent**(): `boolean`

Whether the entity makes no sounds.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isSilent`](/newgen/api/net/minecraft/world/entity/entity.md#issilent)

***

#### isSleeping()

> **isSleeping**(): `boolean`

Whether the entity is in a bed.

**Returns**

`boolean`

***

#### isSpectator()

> **isSpectator**(): `boolean`

Whether the entity is a player in spectator mode.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isSpectator`](/newgen/api/net/minecraft/world/entity/entity.md#isspectator)

***

#### isSteppingCarefully()

> **isSteppingCarefully**(): `boolean`

Whether sneaking stops the entity from walking off edges.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isSteppingCarefully`](/newgen/api/net/minecraft/world/entity/entity.md#issteppingcarefully)

***

#### isSwimming()

> **isSwimming**(): `boolean`

Whether the entity is swimming (sprint-swimming in water).

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isSwimming`](/newgen/api/net/minecraft/world/entity/entity.md#isswimming)

***

#### isUnderWater()

> **isUnderWater**(): `boolean`

Whether the entity's eyes are under water.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isUnderWater`](/newgen/api/net/minecraft/world/entity/entity.md#isunderwater)

***

#### isUsingItem()

> **isUsingItem**(): `boolean`

Whether an item is being used (eating, blocking, drawing a bow\...).

**Returns**

`boolean`

***

#### isVehicle()

> **isVehicle**(): `boolean`

Whether another entity rides this one.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isVehicle`](/newgen/api/net/minecraft/world/entity/entity.md#isvehicle)

***

#### isVisuallyCrawling()

> **isVisuallyCrawling**(): `boolean`

Whether the entity is crawling in a one block high gap.

**Returns**

`boolean`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`isVisuallyCrawling`](/newgen/api/net/minecraft/world/entity/entity.md#isvisuallycrawling)

***

#### onClimbable()

> **onClimbable**(): `boolean`

Whether the entity is on a ladder, vine or similar.

**Returns**

`boolean`

***

#### position()

> **position**(): [`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

The position as a Vec3.

**Returns**

[`Vec3`](/newgen/api/net/minecraft/world/phys/vec3.md)

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`position`](/newgen/api/net/minecraft/world/entity/entity.md#position)

***

#### setDeltaMovement()

> **setDeltaMovement**(`x`, `y`, `z`): `void`

Sets the velocity in blocks per tick.

**Parameters**

**x**

`number`

X.

**y**

`number`

Y.

**z**

`number`

Z.

**Returns**

`void`

**Inherited from**

[`Entity`](/newgen/api/net/minecraft/world/entity/entity.md).[`setDeltaMovement`](/newgen/api/net/minecraft/world/entity/entity.md#setdeltamovement)

***

#### swing()

> **swing**(`hand`): `void`

Plays the swing animation, and tells the server for the local player.

**Parameters**

**hand**

[`InteractionHand`](/newgen/api/enum_types/interactionhand.md)

The hand to swing.

**Returns**

`void`
