public class GameJoinS2CPacket extends Object implements Packet<ClientPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
debugWorld |
private RegistryKey<World> |
dimensionId |
private Set<RegistryKey<World>> |
dimensionIds |
private DimensionType |
dimensionType |
private boolean |
flatWorld |
private GameMode |
gameMode |
private boolean |
hardcore |
private int |
maxPlayers |
private int |
playerEntityId |
private GameMode |
previousGameMode |
private boolean |
reducedDebugInfo |
private DynamicRegistryManager.Impl |
registryManager |
private long |
sha256Seed |
private boolean |
showDeathScreen |
private int |
viewDistance |
Constructor and Description |
---|
GameJoinS2CPacket() |
GameJoinS2CPacket(int playerEntityId,
GameMode gameMode,
GameMode previousGameMode,
long sha256Seed,
boolean hardcore,
Set<RegistryKey<World>> dimensionIds,
DynamicRegistryManager.Impl registryManager,
DimensionType dimensionType,
RegistryKey<World> dimensionId,
int maxPlayers,
int chunkLoadDistance,
boolean reducedDebugInfo,
boolean showDeathScreen,
boolean debugWorld,
boolean flatWorld) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ClientPlayPacketListener clientPlayPacketListener) |
RegistryKey<World> |
getDimensionId() |
Set<RegistryKey<World>> |
getDimensionIds() |
DimensionType |
getDimensionType() |
int |
getEntityId() |
GameMode |
getGameMode() |
GameMode |
getPreviousGameMode() |
DynamicRegistryManager |
getRegistryManager() |
long |
getSha256Seed() |
int |
getViewDistance() |
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, wait
isWritingErrorSkippable
private int playerEntityId
private long sha256Seed
private boolean hardcore
private GameMode gameMode
private GameMode previousGameMode
private Set<RegistryKey<World>> dimensionIds
private DynamicRegistryManager.Impl registryManager
private DimensionType dimensionType
private RegistryKey<World> dimensionId
private int maxPlayers
private int viewDistance
private boolean reducedDebugInfo
private boolean showDeathScreen
private boolean debugWorld
private boolean flatWorld
public GameJoinS2CPacket()
public GameJoinS2CPacket(int playerEntityId, GameMode gameMode, GameMode previousGameMode, long sha256Seed, boolean hardcore, Set<RegistryKey<World>> dimensionIds, DynamicRegistryManager.Impl registryManager, DimensionType dimensionType, RegistryKey<World> dimensionId, int maxPlayers, int chunkLoadDistance, boolean reducedDebugInfo, boolean showDeathScreen, boolean debugWorld, boolean flatWorld)
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 getSha256Seed()
@Environment(value=CLIENT) public boolean isHardcore()
@Environment(value=CLIENT) public GameMode getGameMode()
@Environment(value=CLIENT) public GameMode getPreviousGameMode()
@Environment(value=CLIENT) public Set<RegistryKey<World>> getDimensionIds()
@Environment(value=CLIENT) public DynamicRegistryManager getRegistryManager()
@Environment(value=CLIENT) public DimensionType getDimensionType()
@Environment(value=CLIENT) public RegistryKey<World> getDimensionId()
@Environment(value=CLIENT) public int getViewDistance()
@Environment(value=CLIENT) public boolean hasReducedDebugInfo()
@Environment(value=CLIENT) public boolean showsDeathScreen()
@Environment(value=CLIENT) public boolean isDebugWorld()
@Environment(value=CLIENT) public boolean isFlatWorld()