> 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/api/net/minecraft/client/entity/entityplayer.md).

# EntityPlayer

A player entity.

### Extends

* [`LivingEntity`](/api/net/minecraft/entity/livingentity.md)

### Extended by

* [`EntityPlayerSP`](/api/net/minecraft/client/entity/entityplayersp.md)

### Properties

#### chasingPosX

> **chasingPosX**: `number`

The position that the server last reported for this player. Updated every 3 ticks, with the player smoothly moving towards this position over those ticks.

***

#### chasingPosY

> **chasingPosY**: `number`

The position that the server last reported for this player. Updated every 3 ticks, with the player smoothly moving towards this position over those ticks.

***

#### chasingPosZ

> **chasingPosZ**: `number`

The position that the server last reported for this player. Updated every 3 ticks, with the player smoothly moving towards this position over those ticks.

***

#### dimension

> **dimension**: `number`

The dimension the entity is in: 0 for the Overworld, -1 for the Nether, and 1 for The End

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`dimension`](/api/net/minecraft/entity/livingentity.md#dimension)

***

#### entityID

> `readonly` **entityID**: `number`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`entityID`](/api/net/minecraft/entity/livingentity.md#entityid)

***

#### height

> **height**: `number`

The height of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`height`](/api/net/minecraft/entity/livingentity.md#height)

***

#### hurtTime

> **hurtTime**: `number`

The hurt time in ticks.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`hurtTime`](/api/net/minecraft/entity/livingentity.md#hurttime)

***

#### inventory

> `readonly` **inventory**: [`InventoryPlayer`](/api/net/minecraft/client/entity/inventoryplayer.md)

The player inventory.

***

#### isDead

> **isDead**: `boolean`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isDead`](/api/net/minecraft/entity/livingentity.md#isdead)

***

#### motionX

> **motionX**: `number`

The X motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`motionX`](/api/net/minecraft/entity/livingentity.md#motionx)

***

#### motionY

> **motionY**: `number`

The Y motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`motionY`](/api/net/minecraft/entity/livingentity.md#motiony)

***

#### motionZ

> **motionZ**: `number`

The Z motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`motionZ`](/api/net/minecraft/entity/livingentity.md#motionz)

***

#### onGround

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

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`onGround`](/api/net/minecraft/entity/livingentity.md#onground)

***

#### posX

> **posX**: `number`

The X position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`posX`](/api/net/minecraft/entity/livingentity.md#posx)

***

#### posY

> **posY**: `number`

The Y position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`posY`](/api/net/minecraft/entity/livingentity.md#posy)

***

#### posZ

> **posZ**: `number`

The Z position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`posZ`](/api/net/minecraft/entity/livingentity.md#posz)

***

#### prevChasingPosX

> **prevChasingPosX**: `number`

The previous position that the server last reported for this player.

***

#### prevChasingPosY

> **prevChasingPosY**: `number`

The previous position that the server last reported for this player.

***

#### prevChasingPosZ

> **prevChasingPosZ**: `number`

The previous position that the server last reported for this player.

***

#### prevPosX

> **prevPosX**: `number`

The previous X position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`prevPosX`](/api/net/minecraft/entity/livingentity.md#prevposx)

***

#### prevPosY

> **prevPosY**: `number`

The previous Y position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`prevPosY`](/api/net/minecraft/entity/livingentity.md#prevposy)

***

#### prevPosZ

> **prevPosZ**: `number`

The previous Z position of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`prevPosZ`](/api/net/minecraft/entity/livingentity.md#prevposz)

***

#### prevRotationPitch

> **prevRotationPitch**: `number`

The previous pitch rotation of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`prevRotationPitch`](/api/net/minecraft/entity/livingentity.md#prevrotationpitch)

***

#### prevRotationYaw

> **prevRotationYaw**: `number`

The previous yaw rotation of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`prevRotationYaw`](/api/net/minecraft/entity/livingentity.md#prevrotationyaw)

***

#### rotationPitch

> **rotationPitch**: `number`

The pitch rotation of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`rotationPitch`](/api/net/minecraft/entity/livingentity.md#rotationpitch)

***

#### rotationYaw

> **rotationYaw**: `number`

The yaw rotation of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`rotationYaw`](/api/net/minecraft/entity/livingentity.md#rotationyaw)

***

#### ticksAlive

> `readonly` **ticksAlive**: `number`

The amount of ticks the entity has existed.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`ticksAlive`](/api/net/minecraft/entity/livingentity.md#ticksalive)

***

#### width

> **width**: `number`

The width of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`width`](/api/net/minecraft/entity/livingentity.md#width)

### Methods

#### getCollisionBox()

> **getCollisionBox**(): [`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

Gets the collision box of the entity.

**Returns**

[`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getCollisionBox`](/api/net/minecraft/entity/livingentity.md#getcollisionbox)

***

#### getEntityBoundingBox()

> **getEntityBoundingBox**(): [`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

**Returns**

[`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

The bounding box of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getEntityBoundingBox`](/api/net/minecraft/entity/livingentity.md#getentityboundingbox)

***

#### getHealth()

> **getHealth**(): `number`

**Returns**

`number`

The current health of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getHealth`](/api/net/minecraft/entity/livingentity.md#gethealth)

***

#### getHeldItem()

> **getHeldItem**(): [`ItemStack`](/api/net/minecraft/item/itemstack.md)

**Returns**

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

The item the entity is currently holding.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getHeldItem`](/api/net/minecraft/entity/livingentity.md#gethelditem)

***

#### getLookVec()

> **getLookVec**(): [`Vec3`](/api/net/minecraft/util/vec3.md)

**Returns**

[`Vec3`](/api/net/minecraft/util/vec3.md)

A vector in the direction the entity is looking at. Very useful for raytracing.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getLookVec`](/api/net/minecraft/entity/livingentity.md#getlookvec)

***

#### getMaxHealth()

> **getMaxHealth**(): `number`

**Returns**

`number`

The maximum health of the entity.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getMaxHealth`](/api/net/minecraft/entity/livingentity.md#getmaxhealth)

***

#### getName()

> **getName**(): `string`

**Returns**

`string`

The name of the player.

***

#### getPosition()

> **getPosition**(): [`Vec3`](/api/net/minecraft/util/vec3.md)

Gets the position of the entity as vec3

**Returns**

[`Vec3`](/api/net/minecraft/util/vec3.md)

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getPosition`](/api/net/minecraft/entity/livingentity.md#getposition)

***

#### getPositionEyes()

> **getPositionEyes**(): [`Vec3`](/api/net/minecraft/util/vec3.md)

Gets the position of the eyes as vec3.

**Returns**

[`Vec3`](/api/net/minecraft/util/vec3.md)

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`getPositionEyes`](/api/net/minecraft/entity/livingentity.md#getpositioneyes)

***

#### getUUID()

> **getUUID**(): `string`

**Returns**

`string`

The players UUID as string

***

#### heal()

> **heal**(`amount`): `void`

Heals the entity by the specified amount of health.

**Parameters**

**amount**

`number`

The amount of health to heal.

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`heal`](/api/net/minecraft/entity/livingentity.md#heal)

***

#### isBurning()

> **isBurning**(): `boolean`

**Returns**

`boolean`

If the entity is burning.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isBurning`](/api/net/minecraft/entity/livingentity.md#isburning)

***

#### isEating()

> **isEating**(): `boolean`

**Returns**

`boolean`

If the entity is eating.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isEating`](/api/net/minecraft/entity/livingentity.md#iseating)

***

#### isInWater()

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

**Returns**

`boolean`

If the entity is in water.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isInWater`](/api/net/minecraft/entity/livingentity.md#isinwater)

***

#### isRiding()

> **isRiding**(): `boolean`

**Returns**

`boolean`

If the entity is riding something.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isRiding`](/api/net/minecraft/entity/livingentity.md#isriding)

***

#### isSneaking()

> **isSneaking**(): `boolean`

**Returns**

`boolean`

If the entity is sneaking.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isSneaking`](/api/net/minecraft/entity/livingentity.md#issneaking)

***

#### isSprinting()

> **isSprinting**(): `boolean`

**Returns**

`boolean`

If the entity is sprinting.

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isSprinting`](/api/net/minecraft/entity/livingentity.md#issprinting)

***

#### isWet()

> **isWet**(): `boolean`

**Returns**

`boolean`

If the entity is wet. LOL

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`isWet`](/api/net/minecraft/entity/livingentity.md#iswet)

***

#### setEntityBoundingBox()

> **setEntityBoundingBox**(`aabb`): `void`

Sets the bounding box of the entity.

**Parameters**

**aabb**

[`AxisAlignedBB`](/api/net/minecraft/util/axisalignedbb.md)

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setEntityBoundingBox`](/api/net/minecraft/entity/livingentity.md#setentityboundingbox)

***

#### setHealth()

> **setHealth**(`amount`): `void`

Sets the health of the entity to the specified amount of health.

**Parameters**

**amount**

`number`

The amount of health to set the entity to.

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setHealth`](/api/net/minecraft/entity/livingentity.md#sethealth)

***

#### setOnGround()

> **setOnGround**(`onGround`): `void`

Sets the entities onGround state.

**Parameters**

**onGround**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setOnGround`](/api/net/minecraft/entity/livingentity.md#setonground)

***

#### setPosition()

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

Sets the position and updates its bounding box.

**Parameters**

**x**

`number`

**y**

`number`

**z**

`number`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setPosition`](/api/net/minecraft/entity/livingentity.md#setposition)

***

#### setSneaking()

> **setSneaking**(`sneaking`): `void`

Sets the entities sneaking state.

**Parameters**

**sneaking**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setSneaking`](/api/net/minecraft/entity/livingentity.md#setsneaking)

***

#### setSprinting()

> **setSprinting**(`sprinting`): `void`

Sets the entities sprinting state.

**Parameters**

**sprinting**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](/api/net/minecraft/entity/livingentity.md).[`setSprinting`](/api/net/minecraft/entity/livingentity.md#setsprinting)
