# EntityPlayer

A player entity.

### Extends

* [`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity)

### Extended by

* [`EntityPlayerSP`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayersp)

### 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`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`dimension`](https://scripting.breeze.rip/api/net/entity/livingentity#dimension)

***

#### entityID

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

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`entityID`](https://scripting.breeze.rip/api/net/entity/livingentity#entityid)

***

#### height

> **height**: `number`

The height of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`height`](https://scripting.breeze.rip/api/net/entity/livingentity#height)

***

#### hurtTime

> **hurtTime**: `number`

The hurt time in ticks.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`hurtTime`](https://scripting.breeze.rip/api/net/entity/livingentity#hurttime)

***

#### inventory

> `readonly` **inventory**: [`InventoryPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/inventoryplayer)

The player inventory.

***

#### isDead

> **isDead**: `boolean`

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isDead`](https://scripting.breeze.rip/api/net/entity/livingentity#isdead)

***

#### motionX

> **motionX**: `number`

The X motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`motionX`](https://scripting.breeze.rip/api/net/entity/livingentity#motionx)

***

#### motionY

> **motionY**: `number`

The Y motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`motionY`](https://scripting.breeze.rip/api/net/entity/livingentity#motiony)

***

#### motionZ

> **motionZ**: `number`

The Z motion (velocity) of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`motionZ`](https://scripting.breeze.rip/api/net/entity/livingentity#motionz)

***

#### onGround

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

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`onGround`](https://scripting.breeze.rip/api/net/entity/livingentity#onground)

***

#### posX

> **posX**: `number`

The X position of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`posX`](https://scripting.breeze.rip/api/net/entity/livingentity#posx)

***

#### posY

> **posY**: `number`

The Y position of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`posY`](https://scripting.breeze.rip/api/net/entity/livingentity#posy)

***

#### posZ

> **posZ**: `number`

The Z position of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`posZ`](https://scripting.breeze.rip/api/net/entity/livingentity#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`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`prevPosX`](https://scripting.breeze.rip/api/net/entity/livingentity#prevposx)

***

#### prevPosY

> **prevPosY**: `number`

The previous Y position of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`prevPosY`](https://scripting.breeze.rip/api/net/entity/livingentity#prevposy)

***

#### prevPosZ

> **prevPosZ**: `number`

The previous Z position of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`prevPosZ`](https://scripting.breeze.rip/api/net/entity/livingentity#prevposz)

***

#### prevRotationPitch

> **prevRotationPitch**: `number`

The previous pitch rotation of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`prevRotationPitch`](https://scripting.breeze.rip/api/net/entity/livingentity#prevrotationpitch)

***

#### prevRotationYaw

> **prevRotationYaw**: `number`

The previous yaw rotation of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`prevRotationYaw`](https://scripting.breeze.rip/api/net/entity/livingentity#prevrotationyaw)

***

#### rotationPitch

> **rotationPitch**: `number`

The pitch rotation of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`rotationPitch`](https://scripting.breeze.rip/api/net/entity/livingentity#rotationpitch)

***

#### rotationYaw

> **rotationYaw**: `number`

The yaw rotation of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`rotationYaw`](https://scripting.breeze.rip/api/net/entity/livingentity#rotationyaw)

***

#### ticksAlive

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

The amount of ticks the entity has existed.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`ticksAlive`](https://scripting.breeze.rip/api/net/entity/livingentity#ticksalive)

***

#### width

> **width**: `number`

The width of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`width`](https://scripting.breeze.rip/api/net/entity/livingentity#width)

### Methods

#### getCollisionBox()

> **getCollisionBox**(): [`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb)

Gets the collision box of the entity.

**Returns**

[`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb)

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getCollisionBox`](https://scripting.breeze.rip/api/net/entity/livingentity#getcollisionbox)

***

#### getEntityBoundingBox()

> **getEntityBoundingBox**(): [`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb)

**Returns**

[`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb)

The bounding box of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getEntityBoundingBox`](https://scripting.breeze.rip/api/net/entity/livingentity#getentityboundingbox)

***

#### getHealth()

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

**Returns**

`number`

The current health of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getHealth`](https://scripting.breeze.rip/api/net/entity/livingentity#gethealth)

***

#### getHeldItem()

> **getHeldItem**(): [`ItemStack`](https://scripting.breeze.rip/api/net/minecraft/item/itemstack)

**Returns**

[`ItemStack`](https://scripting.breeze.rip/api/net/minecraft/item/itemstack)

The item the entity is currently holding.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getHeldItem`](https://scripting.breeze.rip/api/net/entity/livingentity#gethelditem)

***

#### getLookVec()

> **getLookVec**(): [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

**Returns**

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

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

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getLookVec`](https://scripting.breeze.rip/api/net/entity/livingentity#getlookvec)

***

#### getMaxHealth()

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

**Returns**

`number`

The maximum health of the entity.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getMaxHealth`](https://scripting.breeze.rip/api/net/entity/livingentity#getmaxhealth)

***

#### getName()

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

**Returns**

`string`

The name of the player.

***

#### getPosition()

> **getPosition**(): [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

Gets the position of the entity as vec3

**Returns**

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getPosition`](https://scripting.breeze.rip/api/net/entity/livingentity#getposition)

***

#### getPositionEyes()

> **getPositionEyes**(): [`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

Gets the position of the eyes as vec3.

**Returns**

[`Vec3`](https://scripting.breeze.rip/api/net/minecraft/util/vec3)

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`getPositionEyes`](https://scripting.breeze.rip/api/net/entity/livingentity#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`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`heal`](https://scripting.breeze.rip/api/net/entity/livingentity#heal)

***

#### isBurning()

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

**Returns**

`boolean`

If the entity is burning.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isBurning`](https://scripting.breeze.rip/api/net/entity/livingentity#isburning)

***

#### isEating()

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

**Returns**

`boolean`

If the entity is eating.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isEating`](https://scripting.breeze.rip/api/net/entity/livingentity#iseating)

***

#### isInWater()

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

**Returns**

`boolean`

If the entity is in water.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isInWater`](https://scripting.breeze.rip/api/net/entity/livingentity#isinwater)

***

#### isRiding()

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

**Returns**

`boolean`

If the entity is riding something.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isRiding`](https://scripting.breeze.rip/api/net/entity/livingentity#isriding)

***

#### isSneaking()

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

**Returns**

`boolean`

If the entity is sneaking.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isSneaking`](https://scripting.breeze.rip/api/net/entity/livingentity#issneaking)

***

#### isSprinting()

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

**Returns**

`boolean`

If the entity is sprinting.

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isSprinting`](https://scripting.breeze.rip/api/net/entity/livingentity#issprinting)

***

#### isWet()

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

**Returns**

`boolean`

If the entity is wet. LOL

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`isWet`](https://scripting.breeze.rip/api/net/entity/livingentity#iswet)

***

#### setEntityBoundingBox()

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

Sets the bounding box of the entity.

**Parameters**

**aabb**

[`AxisAlignedBB`](https://scripting.breeze.rip/api/net/minecraft/util/axisalignedbb)

**Returns**

`void`

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setEntityBoundingBox`](https://scripting.breeze.rip/api/net/entity/livingentity#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`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setHealth`](https://scripting.breeze.rip/api/net/entity/livingentity#sethealth)

***

#### setOnGround()

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

Sets the entities onGround state.

**Parameters**

**onGround**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setOnGround`](https://scripting.breeze.rip/api/net/entity/livingentity#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`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setPosition`](https://scripting.breeze.rip/api/net/entity/livingentity#setposition)

***

#### setSneaking()

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

Sets the entities sneaking state.

**Parameters**

**sneaking**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setSneaking`](https://scripting.breeze.rip/api/net/entity/livingentity#setsneaking)

***

#### setSprinting()

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

Sets the entities sprinting state.

**Parameters**

**sprinting**

`boolean`

**Returns**

`void`

**Inherited from**

[`LivingEntity`](https://scripting.breeze.rip/api/net/minecraft/entity/livingentity).[`setSprinting`](https://scripting.breeze.rip/api/net/entity/livingentity#setsprinting)
