# S01PacketJoinGame

Represents a packet sent when joining a game/server

### Extends

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

### Methods

#### getDifficulty()

> **getDifficulty**(): `number`

Gets the difficulty level ID

**Returns**

`number`

The difficulty ID

***

#### getDimension()

> **getDimension**(): `number`

Gets the dimension ID

**Returns**

`number`

The dimension ID

***

#### getEntityId()

> **getEntityId**(): `number`

Gets the entity ID assigned to the player

**Returns**

`number`

The player's entity ID

***

#### getGameType()

> **getGameType**(): `number`

Gets the game type/mode ID

**Returns**

`number`

The game type ID

***

#### getMaxPlayers()

> **getMaxPlayers**(): `number`

Gets the maximum number of players allowed

**Returns**

`number`

The max player count

***

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

***

#### getWorldType()

> **getWorldType**(): `number`

Gets the world type ID

**Returns**

`number`

The world type ID

***

#### isHardcoreMode()

> **isHardcoreMode**(): `boolean`

Checks if the world is in hardcore mode

**Returns**

`boolean`

True if hardcore mode is enabled, false otherwise

***

#### isReducedDebugInfo()

> **isReducedDebugInfo**(): `boolean`

Checks if reduced debug info is enabled

**Returns**

`boolean`

True if reduced debug info is enabled, false otherwise
