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 Details

    • playerEntityId

      private int playerEntityId
    • sha256Seed

      private long sha256Seed
    • hardcore

      private boolean hardcore
    • gameMode

      private GameMode gameMode
    • previousGameMode

      private GameMode previousGameMode
    • dimensionIds

      private Set<RegistryKey<World>> dimensionIds
    • registryManager

      private DynamicRegistryManager.Impl registryManager
    • dimensionType

      private DimensionType dimensionType
    • dimensionId

      private RegistryKey<World> 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

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ClientPlayPacketListener>
      Throws:
      IOException
    • apply

      public void apply​(ClientPlayPacketListener clientPlayPacketListener)
      Specified by:
      apply in interface Packet<ClientPlayPacketListener>
    • getEntityId

      @Environment(CLIENT) public int getEntityId()
    • getSha256Seed

      @Environment(CLIENT) public long getSha256Seed()
    • isHardcore

      @Environment(CLIENT) public boolean isHardcore()
    • getGameMode

      @Environment(CLIENT) public GameMode getGameMode()
    • getPreviousGameMode

      @Environment(CLIENT) public GameMode getPreviousGameMode()
    • getDimensionIds

      @Environment(CLIENT) public Set<RegistryKey<World>> getDimensionIds()
    • getRegistryManager

      @Environment(CLIENT) public DynamicRegistryManager getRegistryManager()
    • getDimensionType

      @Environment(CLIENT) public DimensionType getDimensionType()
    • getDimensionId

      @Environment(CLIENT) public RegistryKey<World> 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()