# EntityPlayerSP

A player entity

### Extends

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

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

***

#### entityID

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

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`entityID`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#entityid)

***

#### height

> **height**: `number`

The height of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`height`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#height)

***

#### hurtTime

> **hurtTime**: `number`

The hurt time in ticks.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`hurtTime`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#hurttime)

***

#### inventory

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

The player inventory.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`inventory`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#inventory)

***

#### isDead

> **isDead**: `boolean`

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isDead`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`motionX`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#motionx)

***

#### motionY

> **motionY**: `number`

The Y motion (velocity) of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`motionY`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#motiony)

***

#### motionZ

> **motionZ**: `number`

The Z motion (velocity) of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`motionZ`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#motionz)

***

#### onGround

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

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`onGround`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#onground)

***

#### posX

> **posX**: `number`

The X position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`posX`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#posx)

***

#### posY

> **posY**: `number`

The Y position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`posY`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#posy)

***

#### posZ

> **posZ**: `number`

The Z position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`posZ`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#posz)

***

#### prevChasingPosX

> **prevChasingPosX**: `number`

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

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevChasingPosX`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevchasingposx)

***

#### prevChasingPosY

> **prevChasingPosY**: `number`

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

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevChasingPosY`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevchasingposy)

***

#### prevChasingPosZ

> **prevChasingPosZ**: `number`

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

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevChasingPosZ`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevchasingposz)

***

#### prevPosX

> **prevPosX**: `number`

The previous X position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevPosX`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevposx)

***

#### prevPosY

> **prevPosY**: `number`

The previous Y position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevPosY`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevposy)

***

#### prevPosZ

> **prevPosZ**: `number`

The previous Z position of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevPosZ`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevposz)

***

#### prevRotationPitch

> **prevRotationPitch**: `number`

The previous pitch rotation of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevRotationPitch`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevrotationpitch)

***

#### prevRotationYaw

> **prevRotationYaw**: `number`

The previous yaw rotation of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`prevRotationYaw`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#prevrotationyaw)

***

#### rotationPitch

> **rotationPitch**: `number`

The pitch rotation of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`rotationPitch`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#rotationpitch)

***

#### rotationYaw

> **rotationYaw**: `number`

The yaw rotation of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`rotationYaw`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`ticksAlive`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#ticksalive)

***

#### width

> **width**: `number`

The width of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`width`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getCollisionBox`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getEntityBoundingBox`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#getentityboundingbox)

***

#### getHealth()

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

**Returns**

`number`

The current health of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getHealth`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getHeldItem`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getLookVec`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#getlookvec)

***

#### getMaxHealth()

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

**Returns**

`number`

The maximum health of the entity.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getMaxHealth`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#getmaxhealth)

***

#### getName()

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

**Returns**

`string`

The name of the player.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getName`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#getname)

***

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

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getPosition`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getPositionEyes`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#getpositioneyes)

***

#### getUUID()

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

**Returns**

`string`

The players UUID as string

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`getUUID`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`heal`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#heal)

***

#### isBurning()

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

**Returns**

`boolean`

If the entity is burning.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isBurning`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#isburning)

***

#### isEating()

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

**Returns**

`boolean`

If the entity is eating.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isEating`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#iseating)

***

#### isInWater()

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

**Returns**

`boolean`

If the entity is in water.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isInWater`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#isinwater)

***

#### isRiding()

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

**Returns**

`boolean`

If the entity is riding something.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isRiding`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#isriding)

***

#### isSneaking()

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

**Returns**

`boolean`

If the entity is sneaking.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isSneaking`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#issneaking)

***

#### isSprinting()

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

**Returns**

`boolean`

If the entity is sprinting.

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isSprinting`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#issprinting)

***

#### isWet()

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

**Returns**

`boolean`

If the entity is wet. LOL

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`isWet`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#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**

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

***

#### setOnGround()

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

Sets the entities onGround state.

**Parameters**

**onGround**

`boolean`

**Returns**

`void`

**Inherited from**

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

***

#### setSneaking()

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

Sets the entities sneaking state.

**Parameters**

**sneaking**

`boolean`

**Returns**

`void`

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`setSneaking`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#setsneaking)

***

#### setSprinting()

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

Sets the entities sprinting state.

**Parameters**

**sprinting**

`boolean`

**Returns**

`void`

**Inherited from**

[`EntityPlayer`](https://scripting.breeze.rip/api/net/minecraft/client/entity/entityplayer).[`setSprinting`](https://scripting.breeze.rip/api/net/minecraft/client/entityplayer#setsprinting)

***

#### swingItem()

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

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

**Returns**

`void`
