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 intchunkLoadDistanceprivate booleandebugWorldprivate RegistryKey<World>dimensionIdprivate RegistryTracker.ModifiabledimensionTrackerprivate Set<RegistryKey<World>>field_25320private RegistryKey<DimensionType>field_25321private GameModefield_25713private booleanflatWorldprivate GameModegameModeprivate booleanhardcoreprivate intmaxPlayersprivate intplayerEntityIdprivate booleanreducedDebugInfoprivate longsha256Seedprivate booleanshowDeathScreen -
Constructor Summary
Constructors Constructor 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) -
Method Summary
Modifier and Type Method Description voidapply(ClientPlayPacketListener clientPlayPacketListener)intgetChunkLoadDistance()RegistryTrackergetDimension()RegistryKey<World>getDimensionId()intgetEntityId()GameModegetGameMode()longgetSha256Seed()booleanhasReducedDebugInfo()booleanisDebugWorld()booleanisFlatWorld()booleanisHardcore()Set<RegistryKey<World>>method_29443()RegistryKey<DimensionType>method_29444()GameModemethod_30116()voidread(PacketByteBuf buf)booleanshowsDeathScreen()voidwrite(PacketByteBuf buf)
-
Field Details
-
playerEntityId
private int playerEntityId -
sha256Seed
private long sha256Seed -
hardcore
private boolean hardcore -
gameMode
-
field_25713
-
field_25320
-
dimensionTracker
-
field_25321
-
dimensionId
-
maxPlayers
private int maxPlayers -
chunkLoadDistance
private int chunkLoadDistance -
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 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)
-
-
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
-
method_30116
-
method_29443
-
getDimension
-
method_29444
-
getDimensionId
-
getChunkLoadDistance
@Environment(CLIENT) public int getChunkLoadDistance() -
hasReducedDebugInfo
@Environment(CLIENT) public boolean hasReducedDebugInfo() -
showsDeathScreen
@Environment(CLIENT) public boolean showsDeathScreen() -
isDebugWorld
@Environment(CLIENT) public boolean isDebugWorld() -
isFlatWorld
@Environment(CLIENT) public boolean isFlatWorld()
-