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, Map<ResourceLocation,byte[]> serverCookies, @Nullable ChatComponent.State chatState, boolean strictErrorHandling, Map<String,String> customReportDetails, ServerLinks serverLinks)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatComponent.StateThe field for thechatStaterecord component.The field for thecustomReportDetailsrecord component.private 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 Map<ResourceLocation, byte[]> The field for theserverCookiesrecord component.private final ServerDataThe field for theserverDatarecord component.private final ServerLinksThe field for theserverLinksrecord component.private final booleanDeprecated, for removal: This API element is subject to removal in a future version.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, Map<ResourceLocation, byte[]> serverCookies, ChatComponent.State chatState, boolean strictErrorHandling, Map<String, String> customReportDetails, ServerLinks serverLinks) Creates an instance of aCommonListenerCookierecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatStaterecord component.Returns the value of thecustomReportDetailsrecord component.Returns 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.Map<ResourceLocation, byte[]> Returns the value of theserverCookiesrecord component.Returns the value of theserverDatarecord component.Returns the value of theserverLinksrecord component.booleanDeprecated, for removal: This API element is subject to removal in a future version.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. -
serverCookies
The field for theserverCookiesrecord component. -
chatState
The field for thechatStaterecord component. -
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.The field for thestrictErrorHandlingrecord component. -
customReportDetails
The field for thecustomReportDetailsrecord component. -
serverLinks
The field for theserverLinksrecord 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, Map<String, String> customReportDetails, ServerLinks serverLinks) 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 componentserverCookies- the value for theserverCookiesrecord componentchatState- the value for thechatStaterecord componentstrictErrorHandling- the value for thestrictErrorHandlingrecord componentcustomReportDetails- the value for thecustomReportDetailsrecord componentserverLinks- the value for theserverLinksrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
serverCookies
Returns the value of theserverCookiesrecord component.- Returns:
- the value of the
serverCookiesrecord component
-
chatState
Returns the value of thechatStaterecord component.- Returns:
- the value of the
chatStaterecord component
-
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thestrictErrorHandlingrecord component.- Returns:
- the value of the
strictErrorHandlingrecord component
-
customReportDetails
Returns the value of thecustomReportDetailsrecord component.- Returns:
- the value of the
customReportDetailsrecord component
-
serverLinks
Returns the value of theserverLinksrecord component.- Returns:
- the value of the
serverLinksrecord component
-