# C03PacketPlayer

A packet sent by the client to update the player's position and/or rotation.

### Extends

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

### Extended by

* [`C06PacketPlayerPosition`](https://scripting.breeze.rip/api/net/minecraft/network/client/c06packetplayerposition)
* [`C04PacketPlayerPosition`](https://scripting.breeze.rip/api/net/minecraft/network/client/c04packetplayerposition)
* [`C05PacketPlayerLook`](https://scripting.breeze.rip/api/net/minecraft/network/client/c05packetplayerlook)

### Constructors

#### Constructor

> **new C03PacketPlayer**(`onGround`): `C03PacketPlayer`

Creates a new C03PacketPlayer

**Parameters**

**onGround**

`boolean`

Whether the player is on ground

**Returns**

`C03PacketPlayer`

**Overrides**

`Packet.constructor`

### Methods

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

***

#### getPitch()

> **getPitch**(): `number`

Gets the pitch rotation

**Returns**

`number`

The pitch rotation

***

#### getPositionX()

> **getPositionX**(): `number`

Gets the X position

**Returns**

`number`

The X position

***

#### getPositionY()

> **getPositionY**(): `number`

Gets the Y position

**Returns**

`number`

The Y position

***

#### getPositionZ()

> **getPositionZ**(): `number`

Gets the Z position

**Returns**

`number`

The Z position

***

#### getRotating()

> **getRotating**(): `boolean`

Checks if the player is rotating

**Returns**

`boolean`

True if the player is rotating

***

#### getYaw()

> **getYaw**(): `number`

Gets the yaw rotation

**Returns**

`number`

The yaw rotation

***

#### isMoving()

> **isMoving**(): `boolean`

Checks if the player is moving

**Returns**

`boolean`

True if the player is moving

***

#### isOnGround()

> **isOnGround**(): `boolean`

Checks if the player is on ground

**Returns**

`boolean`

True if the player is on ground

***

#### setOnGround()

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

Sets if the player is on ground

**Parameters**

**onGround**

`boolean`

True to set the player on ground

**Returns**

`void`

***

#### setPosition()

> **setPosition**(`x`, `y`, `z`): `void`

Sets the player position

**Parameters**

**x**

`number`

The X position

**y**

`number`

The Y position

**z**

`number`

The Z position

**Returns**

`void`

***

#### setRotations()

> **setRotations**(`yaw`, `pitch`): `void`

Sets the player rotation

**Parameters**

**yaw**

`number`

The yaw rotation

**pitch**

`number`

The pitch rotation

**Returns**

`void`
