S01PacketJoinGame
getEntityId(): int
getEntityId(): int
Returns the entity ID assigned to the player in the game. This is an integer value uniquely identifying the player's entity.
isHardcoreMode(): boolean
isHardcoreMode(): boolean
Determines whether the game is in hardcore mode. Returns true if the game is in hardcore mode, false otherwise.
getGameType(): int
getGameType(): int
Retrieves the game type ID. This is an integer value representing the game mode (e.g., Survival, Creative).
-1
not set.
0
survival
1
creative
2
adventure
3
spectator
getDimension(): int
getDimension(): int
Returns the dimension ID the player is in. This is an integer value representing different dimensions like the Overworld, the Nether, or the End.
getDifficulty(): int
getDifficulty(): int
Provides the difficulty setting of the game. This is an integer value representing the difficulty level (e.g., Peaceful, Easy).
0
peaceful
1
easy
2
normal
3
hard
getMaxPlayers(): int
getMaxPlayers(): int
Returns the maximum number of players allowed in the game. This is an integer value indicating the player capacity of the server.
getWorldType(): int
getWorldType(): int
Retrieves the world type ID. This is an integer value representing the type of world
0
default
1
flat
2
large biomes
3
amplified
4
customized
5
debug world
8
default 1 1
isReducedDebugInfo(): boolean
isReducedDebugInfo(): boolean
Determines whether reduced debug information is enabled. Returns true if reduced debug info is on, false otherwise.
Last updated