> 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/entityplayersp.md).

# EntityPlayerSP

A player entity

### Extends

* [`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.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.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`chasingPosX`](/api/net/minecraft/client/entity/entityplayer.md#chasingposx)

***

#### 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.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`chasingPosY`](/api/net/minecraft/client/entity/entityplayer.md#chasingposy)

***

#### 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.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`chasingPosZ`](/api/net/minecraft/client/entity/entityplayer.md#chasingposz)

***

#### dimension

> **dimension**: `number`

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`dimension`](/api/net/minecraft/client/entity/entityplayer.md#dimension)

***

#### entityID

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`entityID`](/api/net/minecraft/client/entity/entityplayer.md#entityid)

***

#### height

> **height**: `number`

The height of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`height`](/api/net/minecraft/client/entity/entityplayer.md#height)

***

#### hurtTime

> **hurtTime**: `number`

The hurt time in ticks.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`hurtTime`](/api/net/minecraft/client/entity/entityplayer.md#hurttime)

***

#### inventory

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

The player inventory.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`inventory`](/api/net/minecraft/client/entity/entityplayer.md#inventory)

***

#### isDead

> **isDead**: `boolean`

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isDead`](/api/net/minecraft/client/entity/entityplayer.md#isdead)

***

#### lastReportedPitch

> **lastReportedPitch**: `number`

The last reported pitch of the player.

***

#### lastReportedPosX

> **lastReportedPosX**: `number`

The last reported X position of the player.

***

#### lastReportedPosY

> **lastReportedPosY**: `number`

The last reported Y position of the player.

***

#### lastReportedPosZ

> **lastReportedPosZ**: `number`

The last reported Z position of the player.

***

#### lastReportedYaw

> **lastReportedYaw**: `number`

The last reported yaw of the player.

***

#### motionX

> **motionX**: `number`

The X motion (velocity) of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`motionX`](/api/net/minecraft/client/entity/entityplayer.md#motionx)

***

#### motionY

> **motionY**: `number`

The Y motion (velocity) of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`motionY`](/api/net/minecraft/client/entity/entityplayer.md#motiony)

***

#### motionZ

> **motionZ**: `number`

The Z motion (velocity) of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`motionZ`](/api/net/minecraft/client/entity/entityplayer.md#motionz)

***

#### onGround

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`onGround`](/api/net/minecraft/client/entity/entityplayer.md#onground)

***

#### posX

> **posX**: `number`

The X position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`posX`](/api/net/minecraft/client/entity/entityplayer.md#posx)

***

#### posY

> **posY**: `number`

The Y position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`posY`](/api/net/minecraft/client/entity/entityplayer.md#posy)

***

#### posZ

> **posZ**: `number`

The Z position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`posZ`](/api/net/minecraft/client/entity/entityplayer.md#posz)

***

#### prevChasingPosX

> **prevChasingPosX**: `number`

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevChasingPosX`](/api/net/minecraft/client/entity/entityplayer.md#prevchasingposx)

***

#### prevChasingPosY

> **prevChasingPosY**: `number`

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevChasingPosY`](/api/net/minecraft/client/entity/entityplayer.md#prevchasingposy)

***

#### prevChasingPosZ

> **prevChasingPosZ**: `number`

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

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevChasingPosZ`](/api/net/minecraft/client/entity/entityplayer.md#prevchasingposz)

***

#### prevPosX

> **prevPosX**: `number`

The previous X position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevPosX`](/api/net/minecraft/client/entity/entityplayer.md#prevposx)

***

#### prevPosY

> **prevPosY**: `number`

The previous Y position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevPosY`](/api/net/minecraft/client/entity/entityplayer.md#prevposy)

***

#### prevPosZ

> **prevPosZ**: `number`

The previous Z position of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevPosZ`](/api/net/minecraft/client/entity/entityplayer.md#prevposz)

***

#### prevRotationPitch

> **prevRotationPitch**: `number`

The previous pitch rotation of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevRotationPitch`](/api/net/minecraft/client/entity/entityplayer.md#prevrotationpitch)

***

#### prevRotationYaw

> **prevRotationYaw**: `number`

The previous yaw rotation of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`prevRotationYaw`](/api/net/minecraft/client/entity/entityplayer.md#prevrotationyaw)

***

#### rotationPitch

> **rotationPitch**: `number`

The pitch rotation of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`rotationPitch`](/api/net/minecraft/client/entity/entityplayer.md#rotationpitch)

***

#### rotationYaw

> **rotationYaw**: `number`

The yaw rotation of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`rotationYaw`](/api/net/minecraft/client/entity/entityplayer.md#rotationyaw)

***

#### serverSneakState

> **serverSneakState**: `boolean`

The server-side sneak state of the player.

***

#### serverSprintState

> **serverSprintState**: `boolean`

The server-side sprint state of the player.

***

#### ticksAlive

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

The amount of ticks the entity has existed.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`ticksAlive`](/api/net/minecraft/client/entity/entityplayer.md#ticksalive)

***

#### width

> **width**: `number`

The width of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`width`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getCollisionBox`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getEntityBoundingBox`](/api/net/minecraft/client/entity/entityplayer.md#getentityboundingbox)

***

#### getHealth()

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

**Returns**

`number`

The current health of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getHealth`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getHeldItem`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getLookVec`](/api/net/minecraft/client/entity/entityplayer.md#getlookvec)

***

#### getMaxHealth()

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

**Returns**

`number`

The maximum health of the entity.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getMaxHealth`](/api/net/minecraft/client/entity/entityplayer.md#getmaxhealth)

***

#### getName()

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

**Returns**

`string`

The name of the player.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getName`](/api/net/minecraft/client/entity/entityplayer.md#getname)

***

#### 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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getPosition`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getPositionEyes`](/api/net/minecraft/client/entity/entityplayer.md#getpositioneyes)

***

#### getUUID()

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

**Returns**

`string`

The players UUID as string

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`getUUID`](/api/net/minecraft/client/entity/entityplayer.md#getuuid)

***

#### 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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`heal`](/api/net/minecraft/client/entity/entityplayer.md#heal)

***

#### isBurning()

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

**Returns**

`boolean`

If the entity is burning.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isBurning`](/api/net/minecraft/client/entity/entityplayer.md#isburning)

***

#### isEating()

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

**Returns**

`boolean`

If the entity is eating.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isEating`](/api/net/minecraft/client/entity/entityplayer.md#iseating)

***

#### isInWater()

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

**Returns**

`boolean`

If the entity is in water.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isInWater`](/api/net/minecraft/client/entity/entityplayer.md#isinwater)

***

#### isRiding()

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

**Returns**

`boolean`

If the entity is riding something.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isRiding`](/api/net/minecraft/client/entity/entityplayer.md#isriding)

***

#### isSneaking()

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

**Returns**

`boolean`

If the entity is sneaking.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isSneaking`](/api/net/minecraft/client/entity/entityplayer.md#issneaking)

***

#### isSprinting()

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

**Returns**

`boolean`

If the entity is sprinting.

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isSprinting`](/api/net/minecraft/client/entity/entityplayer.md#issprinting)

***

#### isWet()

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

**Returns**

`boolean`

If the entity is wet. LOL

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`isWet`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setEntityBoundingBox`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setHealth`](/api/net/minecraft/client/entity/entityplayer.md#sethealth)

***

#### setOnGround()

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

Sets the entities onGround state.

**Parameters**

**onGround**

`boolean`

**Returns**

`void`

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setOnGround`](/api/net/minecraft/client/entity/entityplayer.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**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setPosition`](/api/net/minecraft/client/entity/entityplayer.md#setposition)

***

#### setSneaking()

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

Sets the entities sneaking state.

**Parameters**

**sneaking**

`boolean`

**Returns**

`void`

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setSneaking`](/api/net/minecraft/client/entity/entityplayer.md#setsneaking)

***

#### setSprinting()

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

Sets the entities sprinting state.

**Parameters**

**sprinting**

`boolean`

**Returns**

`void`

**Inherited from**

[`EntityPlayer`](/api/net/minecraft/client/entity/entityplayer.md).[`setSprinting`](/api/net/minecraft/client/entity/entityplayer.md#setsprinting)

***

#### swingItem()

> **swingItem**(): `void`

Makes the player swing their arm clientside and also sends a C0APacketAnimation to the server.

**Returns**

`void`
