Record Class CommonListenerCookie

java.lang.Object
java.lang.Record
net.minecraft.client.multiplayer.CommonListenerCookie

public record CommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerData serverData, @Nullable Screen postDisconnectScreen) extends Record
  • Field Details

    • localGameProfile

      private final com.mojang.authlib.GameProfile localGameProfile
      The field for the localGameProfile record component.
    • telemetryManager

      private final WorldSessionTelemetryManager telemetryManager
      The field for the telemetryManager record component.
    • receivedRegistries

      private final RegistryAccess.Frozen receivedRegistries
      The field for the receivedRegistries record component.
    • enabledFeatures

      private final FeatureFlagSet enabledFeatures
      The field for the enabledFeatures record component.
    • serverBrand

      @Nullable private final String serverBrand
      The field for the serverBrand record component.
    • serverData

      @Nullable private final ServerData serverData
      The field for the serverData record component.
    • postDisconnectScreen

      @Nullable private final Screen postDisconnectScreen
      The field for the postDisconnectScreen record component.
  • Constructor Details

    • CommonListenerCookie

      public CommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerData serverData, @Nullable Screen postDisconnectScreen)
      Creates an instance of a CommonListenerCookie record class.
      Parameters:
      localGameProfile - the value for the localGameProfile record component
      telemetryManager - the value for the telemetryManager record component
      receivedRegistries - the value for the receivedRegistries record component
      enabledFeatures - the value for the enabledFeatures record component
      serverBrand - the value for the serverBrand record component
      serverData - the value for the serverData record component
      postDisconnectScreen - the value for the postDisconnectScreen record component
  • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o 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
    • telemetryManager

      public WorldSessionTelemetryManager telemetryManager()
      Returns the value of the telemetryManager record component.
      Returns:
      the value of the telemetryManager record component
    • receivedRegistries

      public RegistryAccess.Frozen receivedRegistries()
      Returns the value of the receivedRegistries record component.
      Returns:
      the value of the receivedRegistries record component
    • enabledFeatures

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

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

      @Nullable public ServerData serverData()
      Returns the value of the serverData record component.
      Returns:
      the value of the serverData record component
    • postDisconnectScreen

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