Package net.minecraft.client.network
Record Class ClientConnectionState
java.lang.Object
java.lang.Record
net.minecraft.client.network.ClientConnectionState
- Record Components:
localGameProfile
-worldSession
-receivedRegistries
-enabledFeatures
-serverBrand
-serverInfo
-postDisconnectScreen
-
@Environment(CLIENT)
public record ClientConnectionState(com.mojang.authlib.GameProfile localGameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable receivedRegistries, FeatureSet enabledFeatures, @Nullable String serverBrand, @Nullable ServerInfo serverInfo, @Nullable Screen postDisconnectScreen)
extends Record
- Mappings:
Namespace Name official fjb
intermediary net/minecraft/class_8675
named net/minecraft/client/network/ClientConnectionState
official a
intermediary comp_1611
named localGameProfile
official b
intermediary comp_1612
named worldSession
official c
intermediary comp_1613
named receivedRegistries
official d
intermediary comp_1614
named enabledFeatures
official e
intermediary comp_1615
named serverBrand
official f
intermediary comp_1616
named serverInfo
official g
intermediary comp_1617
named postDisconnectScreen
-
Field Summary
Modifier and TypeFieldDescriptionprivate final FeatureSet
The field for theenabledFeatures
record component.private final com.mojang.authlib.GameProfile
The field for thelocalGameProfile
record component.private final @Nullable Screen
The field for thepostDisconnectScreen
record component.private final DynamicRegistryManager.Immutable
The field for thereceivedRegistries
record component.private final @Nullable String
The field for theserverBrand
record component.private final @Nullable ServerInfo
The field for theserverInfo
record component.private final WorldSession
The field for theworldSession
record component. -
Constructor Summary
ConstructorDescriptionClientConnectionState
(com.mojang.authlib.GameProfile gameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable immutable, FeatureSet featureSet, @Nullable String string, @Nullable ServerInfo serverInfo, @Nullable Screen screen) -
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.com.mojang.authlib.GameProfile
Returns the value of thelocalGameProfile
record component.@Nullable Screen
Returns the value of thepostDisconnectScreen
record component.Returns the value of thereceivedRegistries
record component.@Nullable String
Returns the value of theserverBrand
record component.@Nullable ServerInfo
Returns the value of theserverInfo
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theworldSession
record component.
-
Field Details
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfile
record component. -
worldSession
The field for theworldSession
record component. -
receivedRegistries
The field for thereceivedRegistries
record component. -
enabledFeatures
The field for theenabledFeatures
record component. -
serverBrand
The field for theserverBrand
record component. -
serverInfo
The field for theserverInfo
record component. -
postDisconnectScreen
The field for thepostDisconnectScreen
record component.
-
-
Constructor Details
-
ClientConnectionState
public ClientConnectionState(com.mojang.authlib.GameProfile gameProfile, WorldSession worldSession, DynamicRegistryManager.Immutable immutable, FeatureSet featureSet, @Nullable @Nullable String string, @Nullable @Nullable ServerInfo serverInfo, @Nullable @Nullable Screen screen)
-
-
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 thelocalGameProfile
record component.- Returns:
- the value of the
localGameProfile
record component
-
worldSession
Returns the value of theworldSession
record component.- Returns:
- the value of the
worldSession
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
-
serverInfo
Returns the value of theserverInfo
record component.- Returns:
- the value of the
serverInfo
record component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreen
record component.- Returns:
- the value of the
postDisconnectScreen
record component
-