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, Map<String,String> customReportDetails, ServerLinks serverLinks, ConnectionType connectionType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatComponent.StateThe field for thechatStaterecord component.private final ConnectionTypeThe field for theconnectionTyperecord 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 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, Map<String, String> customReportDetails, ServerLinks serverLinks) Deprecated.CommonListenerCookie(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, Map<String, String> customReportDetails, ServerLinks serverLinks, ConnectionType connectionType) Creates an instance of aCommonListenerCookierecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatStaterecord component.Returns the value of theconnectionTyperecord 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.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. -
customReportDetails
The field for thecustomReportDetailsrecord component. -
serverLinks
The field for theserverLinksrecord component. -
connectionType
The field for theconnectionTyperecord 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, Map<ResourceLocation, byte[]> serverCookies, @Nullable ChatComponent.State chatState, Map<String, String> customReportDetails, ServerLinks serverLinks) Deprecated.UseCommonListenerCookie(GameProfile, WorldSessionTelemetryManager, RegistryAccess.Frozen, FeatureFlagSet, String, ServerData, Screen, Map, ChatComponent.State, Map, ServerLinks, net.neoforged.neoforge.network.connection.ConnectionType)instead,to indicate whether the connection is modded. -
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, Map<String, String> customReportDetails, ServerLinks serverLinks, ConnectionType connectionType) 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 componentcustomReportDetails- the value for thecustomReportDetailsrecord componentserverLinks- the value for theserverLinksrecord componentconnectionType- the value for theconnectionTyperecord 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
-
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
-
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
-
connectionType
Returns the value of theconnectionTyperecord component.- Returns:
- the value of the
connectionTyperecord component
-
CommonListenerCookie(GameProfile, WorldSessionTelemetryManager, RegistryAccess.Frozen, FeatureFlagSet, String, ServerData, Screen, Map, ChatComponent.State, Map, ServerLinks, net.neoforged.neoforge.network.connection.ConnectionType)instead,to indicate whether the connection is modded.