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