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 fiiintermediary net/minecraft/class_8675named net/minecraft/client/network/ClientConnectionStateofficial aintermediary comp_1611named localGameProfileofficial bintermediary comp_1612named worldSessionofficial cintermediary comp_1613named receivedRegistriesofficial dintermediary comp_1614named enabledFeaturesofficial eintermediary comp_1615named serverBrandofficial fintermediary comp_1616named serverInfoofficial gintermediary comp_1617named postDisconnectScreen
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final FeatureSetThe field for theenabledFeaturesrecord component.private final com.mojang.authlib.GameProfileThe field for thelocalGameProfilerecord component.The field for thepostDisconnectScreenrecord component.private final DynamicRegistryManager.ImmutableThe field for thereceivedRegistriesrecord component.The field for theserverBrandrecord component.private final @Nullable ServerInfoThe field for theserverInforecord component.private final WorldSessionThe field for theworldSessionrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionClientConnectionState(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 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.Returns the value of theserverInforecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworldSessionrecord component.
-
Field Details
-
localGameProfile
private final com.mojang.authlib.GameProfile localGameProfileThe field for thelocalGameProfilerecord component. -
worldSession
The field for theworldSessionrecord component. -
receivedRegistries
The field for thereceivedRegistriesrecord component. -
enabledFeatures
The field for theenabledFeaturesrecord component. -
serverBrand
The field for theserverBrandrecord component. -
serverInfo
The field for theserverInforecord component. -
postDisconnectScreen
The field for thepostDisconnectScreenrecord 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 thelocalGameProfilerecord component.- Returns:
- the value of the
localGameProfilerecord component
-
worldSession
Returns the value of theworldSessionrecord component.- Returns:
- the value of the
worldSessionrecord 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
-
serverInfo
Returns the value of theserverInforecord component.- Returns:
- the value of the
serverInforecord component
-
postDisconnectScreen
Returns the value of thepostDisconnectScreenrecord component.- Returns:
- the value of the
postDisconnectScreenrecord component
-