Package net.minecraft.server.network
Record Class ConnectedClientData
java.lang.Object
java.lang.Record
net.minecraft.server.network.ConnectedClientData
- Record Components:
gameProfile-latency-clientInformation-
public record ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int latency, SyncedClientOptions clientInformation)
extends Record
- Mappings:
Namespace Name official algintermediary net/minecraft/class_8792named net/minecraft/server/network/ConnectedClientDataofficial aintermediary comp_1959named gameProfileofficial bintermediary comp_1960named latencyofficial cintermediary comp_1961named clientInformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SyncedClientOptionsThe field for theclientInformationrecord component.private final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.private final intThe field for thelatencyrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientInformationrecord component.static ConnectedClientDatacreateDefault(com.mojang.authlib.GameProfile profile) final booleanIndicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfileReturns the value of thegameProfilerecord component.final inthashCode()Returns a hash code value for this object.intlatency()Returns the value of thelatencyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfilerecord component. -
latency
private final int latencyThe field for thelatencyrecord component. -
clientInformation
The field for theclientInformationrecord component.
-
-
Constructor Details
-
ConnectedClientData
public ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions)
-
-
Method Details
-
createDefault
- Mappings:
Namespace Name Mixin selector official aLalg;a(Lcom/mojang/authlib/GameProfile;)Lalg;intermediary method_53824Lnet/minecraft/class_8792;method_53824(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_8792;named createDefaultLnet/minecraft/server/network/ConnectedClientData;createDefault(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/server/network/ConnectedClientData;
-
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 '=='. -
gameProfile
public com.mojang.authlib.GameProfile gameProfile()Returns the value of thegameProfilerecord component.- Returns:
- the value of the
gameProfilerecord component
-
latency
public int latency()Returns the value of thelatencyrecord component.- Returns:
- the value of the
latencyrecord component
-
syncedOptions
- Mappings:
Namespace Name Mixin selector official cLalg;c()Lakg;intermediary comp_1961Lnet/minecraft/class_8792;comp_1961()Lnet/minecraft/class_8791;named syncedOptionsLnet/minecraft/server/network/ConnectedClientData;syncedOptions()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
-
clientInformation
Returns the value of theclientInformationrecord component.- Returns:
- the value of the
clientInformationrecord component
-