Package net.minecraft.server.network
Record Class ConnectedClientData
java.lang.Object
java.lang.Record
net.minecraft.server.network.ConnectedClientData
- Record Components:
gameProfile-latency-syncedOptions-
public record ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int latency, SyncedClientOptions syncedOptions)
extends Record
- Mappings:
Namespace Name official ansintermediary net/minecraft/class_8792named net/minecraft/server/network/ConnectedClientDataofficial aintermediary comp_1959named gameProfileofficial bintermediary comp_1960named latencyofficial cintermediary comp_1961named syncedOptions
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final com.mojang.authlib.GameProfileThe field for thegameProfilerecord component.private final intThe field for thelatencyrecord component.private final SyncedClientOptionsThe field for thesyncedOptionsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions) -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.Returns the value of thesyncedOptionsrecord 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. -
syncedOptions
The field for thesyncedOptionsrecord component.
-
-
Constructor Details
-
ConnectedClientData
public ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions)
-
-
Method Details
-
createDefault
- Mappings:
Namespace Name Mixin selector official aLans;a(Lcom/mojang/authlib/GameProfile;)Lans;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
Returns the value of thesyncedOptionsrecord component.- Returns:
- the value of the
syncedOptionsrecord component
-