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 Summary
Modifier and TypeFieldDescriptionprivate final FeatureFlagSet
The field for theenabledFeatures
record component.private final boolean
The field for theisModdedConnection
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 ServerData
The field for theserverData
record component.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) 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 aCommonListenerCookie
record class. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.boolean
Returns the value of theisModdedConnection
record component.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.Returns the value of theserverData
record component.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. -
isModdedConnection
private final boolean isModdedConnectionThe field for theisModdedConnection
record 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. -
CommonListenerCookie
public 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 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 componentisModdedConnection
- the value for theisModdedConnection
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
-
isModdedConnection
public boolean isModdedConnection()Returns the value of theisModdedConnection
record component.- Returns:
- the value of the
isModdedConnection
record component
-
CommonListenerCookie(GameProfile, WorldSessionTelemetryManager, RegistryAccess.Frozen, FeatureFlagSet, String, ServerData, Screen, boolean)
instead, to indicate whether the connection is modded.