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 booleandebugWorldprivate RegistryKey<World>dimensionIdprivate Set<RegistryKey<World>>dimensionIdsprivate DimensionTypedimensionTypeprivate booleanflatWorldprivate GameModegameModeprivate booleanhardcoreprivate intmaxPlayersprivate intplayerEntityIdprivate GameModepreviousGameModeprivate booleanreducedDebugInfoprivate DynamicRegistryManager.ImplregistryManagerprivate longsha256Seedprivate booleanshowDeathScreenprivate intviewDistance -
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 voidapply(ClientPlayPacketListener clientPlayPacketListener)RegistryKey<World>getDimensionId()Set<RegistryKey<World>>getDimensionIds()DimensionTypegetDimensionType()intgetEntityId()GameModegetGameMode()GameModegetPreviousGameMode()DynamicRegistryManagergetRegistryManager()longgetSha256Seed()intgetViewDistance()booleanhasReducedDebugInfo()booleanisDebugWorld()booleanisFlatWorld()booleanisHardcore()voidread(PacketByteBuf buf)booleanshowsDeathScreen()voidwrite(PacketByteBuf buf)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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, @Nullable 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:
readin interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
write
- Specified by:
writein interfacePacket<ClientPlayPacketListener>- Throws:
IOException
-
apply
- Specified by:
applyin 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()
-