Class ClientboundLoginPacket

java.lang.Object
net.minecraft.network.protocol.game.ClientboundLoginPacket
All Implemented Interfaces:
Packet<ClientGamePacketListener>

public class ClientboundLoginPacket extends Object implements Packet<ClientGamePacketListener>
  • Field Details

    • HARDCORE_FLAG

      private static final int HARDCORE_FLAG
      See Also:
      Constant Field Values
    • playerId

      private final int playerId
    • seed

      private final long seed
    • hardcore

      private final boolean hardcore
    • gameType

      private final GameType gameType
    • previousGameType

      @Nullable private final GameType previousGameType
    • levels

      private final Set<ResourceKey<Level>> levels
    • registryHolder

      private final RegistryAccess.RegistryHolder registryHolder
    • dimensionType

      private final DimensionType dimensionType
    • dimension

      private final ResourceKey<Level> dimension
    • maxPlayers

      private final int maxPlayers
    • chunkRadius

      private final int chunkRadius
    • reducedDebugInfo

      private final boolean reducedDebugInfo
    • showDeathScreen

      private final boolean showDeathScreen
    • isDebug

      private final boolean isDebug
    • isFlat

      private final boolean isFlat
  • Constructor Details

  • Method Details

    • write

      public void write(FriendlyByteBuf p_132400_)
      Specified by:
      write in interface Packet<ClientGamePacketListener>
    • handle

      public void handle(ClientGamePacketListener p_132397_)
      Specified by:
      handle in interface Packet<ClientGamePacketListener>
    • getPlayerId

      public int getPlayerId()
    • getSeed

      public long getSeed()
    • isHardcore

      public boolean isHardcore()
    • getGameType

      public GameType getGameType()
    • getPreviousGameType

      @Nullable public GameType getPreviousGameType()
    • levels

      public Set<ResourceKey<Level>> levels()
    • registryAccess

      public RegistryAccess registryAccess()
    • getDimensionType

      public DimensionType getDimensionType()
    • getDimension

      public ResourceKey<Level> getDimension()
    • getMaxPlayers

      public int getMaxPlayers()
    • getChunkRadius

      public int getChunkRadius()
    • isReducedDebugInfo

      public boolean isReducedDebugInfo()
    • shouldShowDeathScreen

      public boolean shouldShowDeathScreen()
    • isDebug

      public boolean isDebug()
    • isFlat

      public boolean isFlat()