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
-serverCookies
-chatState
-strictErrorHandling
-
@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, Map<Identifier,byte[]> serverCookies, ChatHud.ChatState chatState, boolean strictErrorHandling)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/network/ClientConnectionState
intermediary net/minecraft/class_8675
official fyp
named localGameProfile
intermediary comp_1611
official a
named worldSession
intermediary comp_1612
official b
named receivedRegistries
intermediary comp_1613
official c
named enabledFeatures
intermediary comp_1614
official d
named serverBrand
intermediary comp_1615
official e
named serverInfo
intermediary comp_1616
official f
named postDisconnectScreen
intermediary comp_1617
official g
named serverCookies
intermediary comp_2205
official h
named chatState
intermediary comp_2553
official i
named strictErrorHandling
intermediary comp_2663
official j
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChatHud.ChatState
The field for thechatState
record component.private final FeatureSet
The field for theenabledFeatures
record component.private final com.mojang.authlib.GameProfile
The field for thelocalGameProfile
record component.The field for thepostDisconnectScreen
record component.private final DynamicRegistryManager.Immutable
The field for thereceivedRegistries
record component.The field for theserverBrand
record component.private final Map
<Identifier, byte[]> The field for theserverCookies
record component.private final @Nullable ServerInfo
The field for theserverInfo
record component.private final boolean
Deprecated, for removal: This API element is subject to removal in a future version.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, Map<Identifier, byte[]> map, ChatHud.ChatState chatState, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechatState
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
<Identifier, byte[]> Returns the value of theserverCookies
record component.Returns the value of theserverInfo
record component.boolean
Deprecated, for removal: This API element is subject to removal in a future version.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. -
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.
-
-
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, Map<Identifier, byte[]> map, @Nullable ChatHud.ChatState chatState, @Deprecated(forRemoval=true) boolean bool)
-
-
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
-
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
-
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
-