public class GameJoinS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private int |
chunkLoadDistance |
private DimensionType |
dimension |
private GameMode |
gameMode |
private LevelGeneratorType |
generatorType |
private boolean |
hardcore |
private int |
maxPlayers |
private int |
playerEntityId |
private boolean |
reducedDebugInfo |
private long |
seed |
private boolean |
showsDeathScreen |
Constructor and Description |
---|
GameJoinS2CPacket() |
GameJoinS2CPacket(int playerEntityId,
GameMode gameMode,
long seed,
boolean hardcore,
DimensionType dimensionType,
int maxPlayers,
LevelGeneratorType levelGeneratorType,
int chunkLoadDistance,
boolean reducedDebugInfo,
boolean showsDeathScreen) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getChunkLoadDistance() |
DimensionType |
getDimension() |
int |
getEntityId() |
GameMode |
getGameMode() |
LevelGeneratorType |
getGeneratorType() |
long |
getSeed() |
boolean |
hasReducedDebugInfo() |
boolean |
isHardcore() |
void |
read(PacketByteBuf buf) |
boolean |
showsDeathScreen() |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private int playerEntityId
private long seed
private boolean hardcore
private GameMode gameMode
private DimensionType dimension
private int maxPlayers
private LevelGeneratorType generatorType
private int chunkLoadDistance
private boolean reducedDebugInfo
private boolean showsDeathScreen
public GameJoinS2CPacket()
public GameJoinS2CPacket(int playerEntityId, GameMode gameMode, long seed, boolean hardcore, DimensionType dimensionType, int maxPlayers, LevelGeneratorType levelGeneratorType, int chunkLoadDistance, boolean reducedDebugInfo, boolean showsDeathScreen)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ClientPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ClientPlayPacketListener>
IOException
public void apply(ClientPlayPacketListener clientPlayPacketListener)
apply
in interface Packet<ClientPlayPacketListener>
@Environment(value=CLIENT) public int getEntityId()
@Environment(value=CLIENT) public long getSeed()
@Environment(value=CLIENT) public boolean isHardcore()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public DimensionType getDimension()
@Environment(value=CLIENT) public LevelGeneratorType getGeneratorType()
@Environment(value=CLIENT) public int getChunkLoadDistance()
@Environment(value=CLIENT) public boolean hasReducedDebugInfo()
@Environment(value=CLIENT) public boolean showsDeathScreen()