public class PacketPlayOutJoinGame extends OutPacket
Modifier and Type | Field and Description |
---|---|
protected Difficulty |
difficulty |
protected Dimension |
dimension |
protected int |
entityId |
protected GameMode |
gamemode |
protected LevelType |
levelType |
protected short |
maxPlayers |
Constructor and Description |
---|
PacketPlayOutJoinGame() |
Modifier and Type | Method and Description |
---|---|
Difficulty |
difficulty() |
Dimension |
dimension() |
void |
encode(ByteBuf buf)
Serialized the data held by this packet into a buffer
|
int |
entityId() |
GameMode |
gameMode() |
int |
id()
Gets the ID of this packet, according to the protocol specification
|
LevelType |
levelType() |
short |
maxPlayers() |
decode, direction, handleReceived, set
protected int entityId
protected Difficulty difficulty
protected short maxPlayers
public PacketPlayOutJoinGame()
public int id()
Packet
public int entityId()
public Difficulty difficulty()
public short maxPlayers()
Copyright © 2016. All rights reserved.