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)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeatureFlagSetThe field for theenabledFeaturesrecord 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 Summary
ConstructorsConstructorDescriptionCommonListenerCookie(com.mojang.authlib.GameProfile localGameProfile, WorldSessionTelemetryManager telemetryManager, RegistryAccess.Frozen receivedRegistries, FeatureFlagSet enabledFeatures, String serverBrand, ServerData serverData, Screen postDisconnectScreen) Creates an instance of aCommonListenerCookierecord class. -
Method Summary
Modifier 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.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
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfilerecord component. -
telemetryManager
The field for thetelemetryManagerrecord component. -
receivedRegistries
The field for thereceivedRegistriesrecord component. -
enabledFeatures
The field for theenabledFeaturesrecord component. -
serverBrand
The field for theserverBrandrecord component. -
serverData
The field for theserverDatarecord component. -
postDisconnectScreen
The field for thepostDisconnectScreenrecord 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 aCommonListenerCookierecord class.- Parameters:
localGameProfile- the value for thelocalGameProfilerecord componenttelemetryManager- the value for thetelemetryManagerrecord componentreceivedRegistries- the value for thereceivedRegistriesrecord componentenabledFeatures- the value for theenabledFeaturesrecord componentserverBrand- the value for theserverBrandrecord componentserverData- the value for theserverDatarecord componentpostDisconnectScreen- the value for thepostDisconnectScreenrecord component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
localGameProfile
public com.mojang.authlib.GameProfile localGameProfile()Returns the value of thelocalGameProfilerecord component.- Returns:
- the value of the
localGameProfilerecord component
-
telemetryManager
Returns the value of thetelemetryManagerrecord component.- Returns:
- the value of the
telemetryManagerrecord component
-
receivedRegistries
Returns the value of thereceivedRegistriesrecord component.- Returns:
- the value of the
receivedRegistriesrecord component
-
enabledFeatures
Returns the value of theenabledFeaturesrecord component.- Returns:
- the value of the
enabledFeaturesrecord component
-
serverBrand
Returns the value of theserverBrandrecord component.- Returns:
- the value of the
serverBrandrecord component
-
serverData
Returns the value of theserverDatarecord component.- Returns:
- the value of the
serverDatarecord component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreenrecord component.- Returns:
- the value of the
postDisconnectScreenrecord component
-