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
Modifier and TypeFieldDescriptionprivate final ChatComponent.State
The field for thechatState
record component.The field for thecustomReportDetails
record component.private final FeatureFlagSet
The field for theenabledFeatures
record component.private final com.mojang.authlib.GameProfile
The field for thelocalGameProfile
record component.private final Screen
The field for thepostDisconnectScreen
record component.private final RegistryAccess.Frozen
The field for thereceivedRegistries
record component.private final String
The field for theserverBrand
record component.private final Map
<ResourceLocation, byte[]> The field for theserverCookies
record component.private final ServerData
The field for theserverData
record component.private final ServerLinks
The field for theserverLinks
record component.private final boolean
Deprecated, for removal: This API element is subject to removal in a future version.private final WorldSessionTelemetryManager
The field for thetelemetryManager
record component. -
Constructor Summary
ConstructorDescriptionCommonListenerCookie
(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 aCommonListenerCookie
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatState
record component.Returns the value of thecustomReportDetails
record component.Returns the value of theenabledFeatures
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.com.mojang.authlib.GameProfile
Returns the value of thelocalGameProfile
record component.Returns the value of thepostDisconnectScreen
record component.Returns the value of thereceivedRegistries
record component.Returns the value of theserverBrand
record component.Map
<ResourceLocation, byte[]> Returns the value of theserverCookies
record component.Returns the value of theserverData
record component.Returns the value of theserverLinks
record component.boolean
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thetelemetryManager
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfile
record component. -
telemetryManager
The field for thetelemetryManager
record component. -
receivedRegistries
The field for thereceivedRegistries
record component. -
enabledFeatures
The field for theenabledFeatures
record component. -
serverBrand
The field for theserverBrand
record component. -
serverData
The field for theserverData
record component. -
postDisconnectScreen
The field for thepostDisconnectScreen
record component. -
serverCookies
The field for theserverCookies
record component. -
chatState
The field for thechatState
record component. -
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.The field for thestrictErrorHandling
record component. -
customReportDetails
The field for thecustomReportDetails
record component. -
serverLinks
The field for theserverLinks
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, Map<String, String> customReportDetails, ServerLinks serverLinks) Creates an instance of aCommonListenerCookie
record class.- Parameters:
localGameProfile
- the value for thelocalGameProfile
record componenttelemetryManager
- the value for thetelemetryManager
record componentreceivedRegistries
- the value for thereceivedRegistries
record componentenabledFeatures
- the value for theenabledFeatures
record componentserverBrand
- the value for theserverBrand
record componentserverData
- the value for theserverData
record componentpostDisconnectScreen
- the value for thepostDisconnectScreen
record componentserverCookies
- the value for theserverCookies
record componentchatState
- the value for thechatState
record componentstrictErrorHandling
- the value for thestrictErrorHandling
record componentcustomReportDetails
- the value for thecustomReportDetails
record componentserverLinks
- the value for theserverLinks
record 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 thelocalGameProfile
record component.- Returns:
- the value of the
localGameProfile
record component
-
telemetryManager
Returns the value of thetelemetryManager
record component.- Returns:
- the value of the
telemetryManager
record component
-
receivedRegistries
Returns the value of thereceivedRegistries
record component.- Returns:
- the value of the
receivedRegistries
record component
-
enabledFeatures
Returns the value of theenabledFeatures
record component.- Returns:
- the value of the
enabledFeatures
record component
-
serverBrand
Returns the value of theserverBrand
record component.- Returns:
- the value of the
serverBrand
record component
-
serverData
Returns the value of theserverData
record component.- Returns:
- the value of the
serverData
record component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreen
record component.- Returns:
- the value of the
postDisconnectScreen
record component
-
serverCookies
Returns the value of theserverCookies
record component.- Returns:
- the value of the
serverCookies
record component
-
chatState
Returns the value of thechatState
record component.- Returns:
- the value of the
chatState
record component
-
strictErrorHandling
Deprecated, for removal: This API element is subject to removal in a future version.Returns the value of thestrictErrorHandling
record component.- Returns:
- the value of the
strictErrorHandling
record component
-
customReportDetails
Returns the value of thecustomReportDetails
record component.- Returns:
- the value of the
customReportDetails
record component
-
serverLinks
Returns the value of theserverLinks
record component.- Returns:
- the value of the
serverLinks
record component
-