> 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/network/server/s0fpacketspawnmob.md).

# S0FPacketSpawnMob

Represents a packet that is sent when a mob entity is spawned

### Extends

* [`Packet`](/api/net/minecraft/network/packet.md)

### Methods

#### getEntityID()

> **getEntityID**(): `number`

Gets the ID of the spawned mob entity

**Returns**

`number`

The entity ID

***

#### getEntityType()

> **getEntityType**(): `number`

Gets the type ID of the spawned mob

**Returns**

`number`

The mob type ID

***

#### getHeadPitch()

> **getHeadPitch**(): `number`

Gets the head pitch rotation of the mob in degrees

**Returns**

`number`

The head pitch angle

***

#### getPacketID()

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

Get the ID of the packet.

**Returns**

`string`

The ID of the packet.

**Inherited from**

[`Packet`](/api/net/minecraft/network/packet.md).[`getPacketID`](/api/net/minecraft/network/packet.md#getpacketid)

***

#### getPitch()

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

Gets the pitch rotation of the mob in degrees

**Returns**

`number`

The pitch angle

***

#### getVelocityX()

> **getVelocityX**(): `number`

Gets the X velocity of the mob

**Returns**

`number`

The X velocity

***

#### getVelocityY()

> **getVelocityY**(): `number`

Gets the Y velocity of the mob

**Returns**

`number`

The Y velocity

***

#### getVelocityZ()

> **getVelocityZ**(): `number`

Gets the Z velocity of the mob

**Returns**

`number`

The Z velocity

***

#### getX()

> **getX**(): `number`

Gets the X position of the mob

**Returns**

`number`

The X coordinate

***

#### getY()

> **getY**(): `number`

Gets the Y position of the mob

**Returns**

`number`

The Y coordinate

***

#### getYaw()

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

Gets the yaw rotation of the mob in degrees

**Returns**

`number`

The yaw angle

***

#### getZ()

> **getZ**(): `number`

Gets the Z position of the mob

**Returns**

`number`

The Z coordinate
