java.lang.Object
org.geysermc.mcprotocollib.protocol.packet.ingame.clientbound.ClientboundLoginPacket
All Implemented Interfaces:
Packet, MinecraftPacket

public class ClientboundLoginPacket extends Object implements MinecraftPacket
  • Constructor Details

    • ClientboundLoginPacket

      public ClientboundLoginPacket(io.netty.buffer.ByteBuf in, MinecraftCodecHelper helper)
    • ClientboundLoginPacket

      public ClientboundLoginPacket(int entityId, boolean hardcore, @NonNull @NonNull net.kyori.adventure.key.Key[] worldNames, int maxPlayers, int viewDistance, int simulationDistance, boolean reducedDebugInfo, boolean enableRespawnScreen, boolean doLimitedCrafting, PlayerSpawnInfo commonPlayerSpawnInfo, boolean enforcesSecureChat)
  • Method Details

    • serialize

      public void serialize(io.netty.buffer.ByteBuf out, MinecraftCodecHelper helper)
      Specified by:
      serialize in interface MinecraftPacket
    • getEntityId

      public int getEntityId()
    • isHardcore

      public boolean isHardcore()
    • getWorldNames

      @NonNull public @NonNull net.kyori.adventure.key.Key[] getWorldNames()
    • getMaxPlayers

      public int getMaxPlayers()
    • getViewDistance

      public int getViewDistance()
    • getSimulationDistance

      public int getSimulationDistance()
    • isReducedDebugInfo

      public boolean isReducedDebugInfo()
    • isEnableRespawnScreen

      public boolean isEnableRespawnScreen()
    • isDoLimitedCrafting

      public boolean isDoLimitedCrafting()
    • getCommonPlayerSpawnInfo

      public PlayerSpawnInfo getCommonPlayerSpawnInfo()
    • isEnforcesSecureChat

      public boolean isEnforcesSecureChat()
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(@Nullable Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public @NonNull String toString()
      Overrides:
      toString in class Object
    • withEntityId

      public @NonNull ClientboundLoginPacket withEntityId(int entityId)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withHardcore

      public @NonNull ClientboundLoginPacket withHardcore(boolean hardcore)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withWorldNames

      public @NonNull ClientboundLoginPacket withWorldNames(@NonNull @NonNull net.kyori.adventure.key.Key[] worldNames)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withMaxPlayers

      public @NonNull ClientboundLoginPacket withMaxPlayers(int maxPlayers)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withViewDistance

      public @NonNull ClientboundLoginPacket withViewDistance(int viewDistance)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withSimulationDistance

      public @NonNull ClientboundLoginPacket withSimulationDistance(int simulationDistance)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withReducedDebugInfo

      public @NonNull ClientboundLoginPacket withReducedDebugInfo(boolean reducedDebugInfo)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEnableRespawnScreen

      public @NonNull ClientboundLoginPacket withEnableRespawnScreen(boolean enableRespawnScreen)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withDoLimitedCrafting

      public @NonNull ClientboundLoginPacket withDoLimitedCrafting(boolean doLimitedCrafting)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withCommonPlayerSpawnInfo

      public @NonNull ClientboundLoginPacket withCommonPlayerSpawnInfo(PlayerSpawnInfo commonPlayerSpawnInfo)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).
    • withEnforcesSecureChat

      public @NonNull ClientboundLoginPacket withEnforcesSecureChat(boolean enforcesSecureChat)
      Returns:
      a clone of this object, except with this updated property (returns this if an identical value is passed).