# LivingEntity

Living entity.

### Extends

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

### Extended by

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

### Properties

#### dimension

> **dimension**: `number`

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

**Inherited from**

[`Entity`](https://scripting.breeze.rip/api/net/minecraft/entity/entity).[`dimension`](https://scripting.breeze.rip/api/net/minecraft/entity#dimension)

***

#### entityID

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

**Inherited from**

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

***

#### height

> **height**: `number`

The height of the entity.

**Inherited from**

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

***

#### hurtTime

> **hurtTime**: `number`

The hurt time in ticks.

***

#### isDead

> **isDead**: `boolean`

**Inherited from**

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

***

#### motionX

> **motionX**: `number`

The X motion (velocity) of the entity.

**Inherited from**

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

***

#### motionY

> **motionY**: `number`

The Y motion (velocity) of the entity.

**Inherited from**

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

***

#### motionZ

> **motionZ**: `number`

The Z motion (velocity) of the entity.

**Inherited from**

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

***

#### onGround

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

**Inherited from**

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

***

#### posX

> **posX**: `number`

The X position of the entity.

**Inherited from**

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

***

#### posY

> **posY**: `number`

The Y position of the entity.

**Inherited from**

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

***

#### posZ

> **posZ**: `number`

The Z position of the entity.

**Inherited from**

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

***

#### prevPosX

> **prevPosX**: `number`

The previous X position of the entity.

**Inherited from**

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

***

#### prevPosY

> **prevPosY**: `number`

The previous Y position of the entity.

**Inherited from**

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

***

#### prevPosZ

> **prevPosZ**: `number`

The previous Z position of the entity.

**Inherited from**

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

***

#### prevRotationPitch

> **prevRotationPitch**: `number`

The previous pitch rotation of the entity.

**Inherited from**

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

***

#### prevRotationYaw

> **prevRotationYaw**: `number`

The previous yaw rotation of the entity.

**Inherited from**

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

***

#### rotationPitch

> **rotationPitch**: `number`

The pitch rotation of the entity.

**Inherited from**

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

***

#### rotationYaw

> **rotationYaw**: `number`

The yaw rotation of the entity.

**Inherited from**

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

***

#### ticksAlive

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

The amount of ticks the entity has existed.

**Inherited from**

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

***

#### width

> **width**: `number`

The width of the entity.

**Inherited from**

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

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

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

***

#### getHealth()

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

**Returns**

`number`

The current health of the entity.

***

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

***

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

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

***

#### getMaxHealth()

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

**Returns**

`number`

The maximum health of the entity.

***

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

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

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

***

#### heal()

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

Heals the entity by the specified amount of health.

**Parameters**

**amount**

`number`

The amount of health to heal.

**Returns**

`void`

***

#### isBurning()

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

**Returns**

`boolean`

If the entity is burning.

**Inherited from**

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

***

#### isEating()

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

**Returns**

`boolean`

If the entity is eating.

**Inherited from**

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

***

#### isInWater()

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

**Returns**

`boolean`

If the entity is in water.

**Inherited from**

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

***

#### isRiding()

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

**Returns**

`boolean`

If the entity is riding something.

**Inherited from**

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

***

#### isSneaking()

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

**Returns**

`boolean`

If the entity is sneaking.

**Inherited from**

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

***

#### isSprinting()

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

**Returns**

`boolean`

If the entity is sprinting.

**Inherited from**

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

***

#### isWet()

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

**Returns**

`boolean`

If the entity is wet. LOL

**Inherited from**

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

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

***

#### setOnGround()

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

Sets the entities onGround state.

**Parameters**

**onGround**

`boolean`

**Returns**

`void`

**Inherited from**

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

[`Entity`](https://scripting.breeze.rip/api/net/minecraft/entity/entity).[`setPosition`](https://scripting.breeze.rip/api/net/minecraft/entity#setposition)

***

#### setSneaking()

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

Sets the entities sneaking state.

**Parameters**

**sneaking**

`boolean`

**Returns**

`void`

**Inherited from**

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

***

#### setSprinting()

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

Sets the entities sprinting state.

**Parameters**

**sprinting**

`boolean`

**Returns**

`void`

**Inherited from**

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