Record Class ClientConnectionState

java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientConnectionState
Record Components:
localGameProfile -
worldSession -
receivedRegistries -
enabledFeatures -
serverBrand -
serverInfo -
postDisconnectScreen -

@Environment(CLIENT) public record ClientConnectionState(com.mojang.authlib.GameProfile localGameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable receivedRegistries, FeatureSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerInfo serverInfo, @Nullable Screen postDisconnectScreen) extends Record
Mappings:
Namespace Name
official fjb
intermediary net/minecraft/class_8675
named net/minecraft/client/network/ClientConnectionState
official a
intermediary comp_1611
named localGameProfile
official b
intermediary comp_1612
named worldSession
official c
intermediary comp_1613
named receivedRegistries
official d
intermediary comp_1614
named enabledFeatures
official e
intermediary comp_1615
named serverBrand
official f
intermediary comp_1616
named serverInfo
official g
intermediary comp_1617
named postDisconnectScreen
  • Field Details

  • Constructor Details

  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • localGameProfile

      public com.mojang.authlib.GameProfile localGameProfile()
      Returns the value of the localGameProfile record component.
      Returns:
      the value of the localGameProfile record component
    • worldSession

      public WorldSession worldSession()
      Returns the value of the worldSession record component.
      Returns:
      the value of the worldSession record component
    • receivedRegistries

      public DynamicRegistryManager.Immutable receivedRegistries()
      Returns the value of the receivedRegistries record component.
      Returns:
      the value of the receivedRegistries record component
    • enabledFeatures

      public FeatureSet enabledFeatures()
      Returns the value of the enabledFeatures record component.
      Returns:
      the value of the enabledFeatures record component
    • serverBrand

      @Nullable public @Nullable String serverBrand()
      Returns the value of the serverBrand record component.
      Returns:
      the value of the serverBrand record component
    • serverInfo

      @Nullable public @Nullable ServerInfo serverInfo()
      Returns the value of the serverInfo record component.
      Returns:
      the value of the serverInfo record component
    • postDisconnectScreen

      @Nullable public @Nullable Screen postDisconnectScreen()
      Returns the value of the postDisconnectScreen record component.
      Returns:
      the value of the postDisconnectScreen record component