Package net.minecraft.client.multiplayer
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, boolean isModdedConnection)
extends Record
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final FeatureFlagSetThe field for theenabledFeaturesrecord component.private final booleanThe field for theisModdedConnectionrecord component.private final com.mojang.authlib.GameProfileThe field for thelocalGameProfilerecord component.private final ScreenThe field for thepostDisconnectScreenrecord component.private final RegistryAccess.FrozenThe field for thereceivedRegistriesrecord component.private final StringThe field for theserverBrandrecord component.private final ServerDataThe field for theserverDatarecord component.private final WorldSessionTelemetryManagerThe field for thetelemetryManagerrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionCommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, String serverBrand, ServerData serverData, Screen postDisconnectScreen) Deprecated.CommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, String serverBrand, ServerData serverData, Screen postDisconnectScreen, boolean isModdedConnection) Creates an instance of aCommonListenerCookierecord class.
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of theenabledFeaturesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisModdedConnectionrecord component.com.mojang.authlib.GameProfileReturns the value of thelocalGameProfilerecord component.Returns the value of thepostDisconnectScreenrecord component.Returns the value of thereceivedRegistriesrecord component.Returns the value of theserverBrandrecord component.Returns the value of theserverDatarecord component.Returns the value of thetelemetryManagerrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
localGameProfileprivate final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfilerecord component.
- 
telemetryManagerThe field for thetelemetryManagerrecord component.
- 
receivedRegistriesThe field for thereceivedRegistriesrecord component.
- 
enabledFeaturesThe field for theenabledFeaturesrecord component.
- 
serverBrandThe field for theserverBrandrecord component.
- 
serverDataThe field for theserverDatarecord component.
- 
postDisconnectScreenThe field for thepostDisconnectScreenrecord component.
- 
isModdedConnectionprivate final boolean isModdedConnectionThe field for theisModdedConnectionrecord component.
 
- 
- 
Constructor Details- 
CommonListenerCookie@Deprecated public CommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerData serverData, @Nullable Screen postDisconnectScreen) Deprecated.UseCommonListenerCookie(GameProfile, WorldSessionTelemetryManager, RegistryAccess.Frozen, FeatureFlagSet, String, ServerData, Screen, boolean)instead, to indicate whether the connection is modded.
- 
CommonListenerCookiepublic CommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerData serverData, @Nullable Screen postDisconnectScreen, boolean isModdedConnection) Creates an instance of aCommonListenerCookierecord class.- Parameters:
- localGameProfile- the value for the- localGameProfilerecord component
- telemetryManager- the value for the- telemetryManagerrecord component
- receivedRegistries- the value for the- receivedRegistriesrecord component
- enabledFeatures- the value for the- enabledFeaturesrecord component
- serverBrand- the value for the- serverBrandrecord component
- serverData- the value for the- serverDatarecord component
- postDisconnectScreen- the value for the- postDisconnectScreenrecord component
- isModdedConnection- the value for the- isModdedConnectionrecord component
 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 withObjects::equals(Object,Object); primitive components are compared with '=='.
- 
localGameProfilepublic com.mojang.authlib.GameProfile localGameProfile()Returns the value of thelocalGameProfilerecord component.- Returns:
- the value of the localGameProfilerecord component
 
- 
telemetryManagerReturns the value of thetelemetryManagerrecord component.- Returns:
- the value of the telemetryManagerrecord component
 
- 
receivedRegistriesReturns the value of thereceivedRegistriesrecord component.- Returns:
- the value of the receivedRegistriesrecord component
 
- 
enabledFeaturesReturns the value of theenabledFeaturesrecord component.- Returns:
- the value of the enabledFeaturesrecord component
 
- 
serverBrandReturns the value of theserverBrandrecord component.- Returns:
- the value of the serverBrandrecord component
 
- 
serverDataReturns the value of theserverDatarecord component.- Returns:
- the value of the serverDatarecord component
 
- 
postDisconnectScreenReturns the value of thepostDisconnectScreenrecord component.- Returns:
- the value of the postDisconnectScreenrecord component
 
- 
isModdedConnectionpublic boolean isModdedConnection()Returns the value of theisModdedConnectionrecord component.- Returns:
- the value of the isModdedConnectionrecord component
 
 
- 
CommonListenerCookie(GameProfile, WorldSessionTelemetryManager, RegistryAccess.Frozen, FeatureFlagSet, String, ServerData, Screen, boolean)instead, to indicate whether the connection is modded.