# C0BPacketEntityAction

A packet sent by the client to inform the server about entity actions such as sprinting or sneaking.

### Extends

* [`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet)

### Constructors

#### Constructor

> **new C0BPacketEntityAction**(`entity`, `action`): `C0BPacketEntityAction`

Creates a new C0BPacketEntityAction for the given entity and action

**Parameters**

**entity**

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

The entity performing the action

**action**

[`EntityAction`](https://scripting.breeze.rip/api/enum_types/entityaction)

The action being performed

**Returns**

`C0BPacketEntityAction`

**Overrides**

`Packet.constructor`

### Methods

#### getAction()

> **getAction**(): [`EntityAction`](https://scripting.breeze.rip/api/enum_types/entityaction)

Gets the action being performed

**Returns**

[`EntityAction`](https://scripting.breeze.rip/api/enum_types/entityaction)

The action as a string

***

#### getAuxData()

> **getAuxData**(): `number`

Gets the auxiliary data associated with this action

**Returns**

`number`

The auxiliary data value

***

#### getPacketID()

> **getPacketID**(): `string`

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](https://scripting.breeze.rip/api/net/minecraft/network/packet).[`getPacketID`](https://scripting.breeze.rip/api/net/minecraft/packet#getpacketid)

***

#### setAction()

> **setAction**(`action`): `void`

Sets the action to be performed

**Parameters**

**action**

[`EntityAction`](https://scripting.breeze.rip/api/enum_types/entityaction)

The new action

**Returns**

`void`

***

#### setAuxData()

> **setAuxData**(`auxData`): `void`

Sets the auxiliary data associated with this action

**Parameters**

**auxData**

`number`

The new auxiliary data value

**Returns**

`void`
