public class SPacketJoinGame extends java.lang.Object implements Packet<INetHandlerPlayClient>
Modifier and Type | Field and Description |
---|---|
private EnumDifficulty |
difficulty |
private int |
dimension |
private GameType |
gameType |
private boolean |
hardcoreMode |
private int |
maxPlayers |
private int |
playerId |
private boolean |
reducedDebugInfo |
private WorldType |
worldType |
Constructor and Description |
---|
SPacketJoinGame() |
SPacketJoinGame(int playerIdIn,
GameType gameTypeIn,
boolean hardcoreModeIn,
int dimensionIn,
EnumDifficulty difficultyIn,
int maxPlayersIn,
WorldType worldTypeIn,
boolean reducedDebugInfoIn) |
Modifier and Type | Method and Description |
---|---|
EnumDifficulty |
getDifficulty() |
int |
getDimension() |
GameType |
getGameType() |
int |
getMaxPlayers() |
int |
getPlayerId() |
WorldType |
getWorldType() |
boolean |
isHardcoreMode() |
boolean |
isReducedDebugInfo() |
void |
processPacket(INetHandlerPlayClient handler) |
void |
readPacketData(PacketBuffer buf) |
void |
writePacketData(PacketBuffer buf) |
private int playerId
private boolean hardcoreMode
private GameType gameType
private int dimension
private EnumDifficulty difficulty
private int maxPlayers
private WorldType worldType
private boolean reducedDebugInfo
public SPacketJoinGame()
public SPacketJoinGame(int playerIdIn, GameType gameTypeIn, boolean hardcoreModeIn, int dimensionIn, EnumDifficulty difficultyIn, int maxPlayersIn, WorldType worldTypeIn, boolean reducedDebugInfoIn)
public void readPacketData(PacketBuffer buf) throws java.io.IOException
readPacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void writePacketData(PacketBuffer buf) throws java.io.IOException
writePacketData
in interface Packet<INetHandlerPlayClient>
java.io.IOException
public void processPacket(INetHandlerPlayClient handler)
processPacket
in interface Packet<INetHandlerPlayClient>
public int getPlayerId()
public boolean isHardcoreMode()
public GameType getGameType()
public int getDimension()
public EnumDifficulty getDifficulty()
public int getMaxPlayers()
public WorldType getWorldType()
public boolean isReducedDebugInfo()