Class GameJoinS2CPacket
java.lang.Object
net.minecraft.network.packet.s2c.play.GameJoinS2CPacket
- All Implemented Interfaces:
Packet<ClientPlayPacketListener>
public class GameJoinS2CPacket extends Object implements Packet<ClientPlayPacketListener>
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor 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)
-
Method Summary
Modifier and Type Method 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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
playerEntityId
private int playerEntityId -
sha256Seed
private long sha256Seed -
hardcore
private boolean hardcore -
gameMode
-
previousGameMode
-
dimensionIds
-
registryManager
-
dimensionType
-
dimensionId
-
maxPlayers
private int maxPlayers -
viewDistance
private int viewDistance -
reducedDebugInfo
private boolean reducedDebugInfo -
showDeathScreen
private boolean showDeathScreen -
debugWorld
private boolean debugWorld -
flatWorld
private boolean flatWorld
-
-
Constructor Details
-
GameJoinS2CPacket
public GameJoinS2CPacket() -
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)
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ClientPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ClientPlayPacketListener>
-
getEntityId
@Environment(CLIENT) public int getEntityId() -
getSha256Seed
@Environment(CLIENT) public long getSha256Seed() -
isHardcore
@Environment(CLIENT) public boolean isHardcore() -
getGameMode
-
getPreviousGameMode
-
getDimensionIds
-
getRegistryManager
-
getDimensionType
-
getDimensionId
-
getViewDistance
@Environment(CLIENT) public int getViewDistance() -
hasReducedDebugInfo
@Environment(CLIENT) public boolean hasReducedDebugInfo() -
showsDeathScreen
@Environment(CLIENT) public boolean showsDeathScreen() -
isDebugWorld
@Environment(CLIENT) public boolean isDebugWorld() -
isFlatWorld
@Environment(CLIENT) public boolean isFlatWorld()
-