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, Map<ResourceLocation,byte[]> serverCookies, @Nullable ChatComponent.State chatState, boolean strictErrorHandling) 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.
    • serverCookies

      private final Map<ResourceLocation,byte[]> serverCookies
      The field for the serverCookies record component.
    • chatState

      @Nullable private final ChatComponent.State chatState
      The field for the chatState record component.
    • strictErrorHandling

      @Deprecated(forRemoval=true) private final boolean strictErrorHandling
      Deprecated, for removal: This API element is subject to removal in a future version.
      The field for the strictErrorHandling 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, Map<ResourceLocation,byte[]> serverCookies, @Nullable ChatComponent.State chatState, @Deprecated(forRemoval=true) boolean strictErrorHandling)
      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
      serverCookies - the value for the serverCookies record component
      chatState - the value for the chatState record component
      strictErrorHandling - the value for the strictErrorHandling 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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
    • serverCookies

      public Map<ResourceLocation,byte[]> serverCookies()
      Returns the value of the serverCookies record component.
      Returns:
      the value of the serverCookies record component
    • chatState

      @Nullable public ChatComponent.State chatState()
      Returns the value of the chatState record component.
      Returns:
      the value of the chatState record component
    • strictErrorHandling

      @Deprecated(forRemoval=true) public boolean strictErrorHandling()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the value of the strictErrorHandling record component.
      Returns:
      the value of the strictErrorHandling record component