public class GameJoinS2CPacket extends Object implements Packet<ClientPlayPacketListener>
| Modifier and Type | Field and Description |
|---|---|
private int |
chunkLoadDistance |
private boolean |
debugWorld |
private RegistryKey<World> |
dimensionId |
private RegistryTracker.Modifiable |
dimensionTracker |
private Set<RegistryKey<World>> |
field_25320 |
private RegistryKey<DimensionType> |
field_25321 |
private GameMode |
field_25713 |
private boolean |
flatWorld |
private GameMode |
gameMode |
private boolean |
hardcore |
private int |
maxPlayers |
private int |
playerEntityId |
private boolean |
reducedDebugInfo |
private long |
sha256Seed |
private boolean |
showDeathScreen |
| Constructor and Description |
|---|
GameJoinS2CPacket() |
GameJoinS2CPacket(int playerEntityId,
GameMode gameMode,
GameMode gameMode2,
long sha256Seed,
boolean hardcore,
Set<RegistryKey<World>> set,
RegistryTracker.Modifiable modifiable,
RegistryKey<DimensionType> registryKey,
RegistryKey<World> registryKey2,
int maxPlayers,
int chunkLoadDistance,
boolean reducedDebugInfo,
boolean showDeathScreen,
boolean debugWorld,
boolean flatWorld) |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
int |
getChunkLoadDistance() |
RegistryTracker |
getDimension() |
RegistryKey<World> |
getDimensionId() |
int |
getEntityId() |
GameMode |
getGameMode() |
long |
getSha256Seed() |
boolean |
hasReducedDebugInfo() |
boolean |
isDebugWorld() |
boolean |
isFlatWorld() |
boolean |
isHardcore() |
Set<RegistryKey<World>> |
method_29443() |
RegistryKey<DimensionType> |
method_29444() |
GameMode |
method_30116() |
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 sha256Seed
private boolean hardcore
private GameMode gameMode
private GameMode field_25713
private Set<RegistryKey<World>> field_25320
private RegistryTracker.Modifiable dimensionTracker
private RegistryKey<DimensionType> field_25321
private RegistryKey<World> dimensionId
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,
GameMode gameMode2,
long sha256Seed,
boolean hardcore,
Set<RegistryKey<World>> set,
RegistryTracker.Modifiable modifiable,
RegistryKey<DimensionType> registryKey,
RegistryKey<World> registryKey2,
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 getSha256Seed()
@Environment(value=CLIENT) public boolean isHardcore()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public GameMode method_30116()
@Environment(value=CLIENT) public Set<RegistryKey<World>> method_29443()
@Environment(value=CLIENT) public RegistryTracker getDimension()
@Environment(value=CLIENT) public RegistryKey<DimensionType> method_29444()
@Environment(value=CLIENT) public RegistryKey<World> getDimensionId()
@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()