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 alg
intermediary net/minecraft/class_8792
named net/minecraft/server/network/ConnectedClientData
official a
intermediary comp_1959
named gameProfile
official b
intermediary comp_1960
named latency
official c
intermediary comp_1961
named clientInformation
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SyncedClientOptions
The field for theclientInformation
record component.private final com.mojang.authlib.GameProfile
The field for thegameProfile
record component.private final int
The field for thelatency
record component. -
Constructor Summary
ConstructorsConstructorDescriptionConnectedClientData
(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclientInformation
record component.static ConnectedClientData
createDefault
(com.mojang.authlib.GameProfile profile) final boolean
Indicates whether some other object is "equal to" this one.com.mojang.authlib.GameProfile
Returns the value of thegameProfile
record component.final int
hashCode()
Returns a hash code value for this object.int
latency()
Returns the value of thelatency
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
gameProfile
private final com.mojang.authlib.GameProfile gameProfileThe field for thegameProfile
record component. -
latency
private final int latencyThe field for thelatency
record component. -
clientInformation
The field for theclientInformation
record component.
-
-
Constructor Details
-
ConnectedClientData
public ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions)
-
-
Method Details
-
createDefault
- Mappings:
Namespace Name Mixin selector official a
Lalg;a(Lcom/mojang/authlib/GameProfile;)Lalg;
intermediary method_53824
Lnet/minecraft/class_8792;method_53824(Lcom/mojang/authlib/GameProfile;)Lnet/minecraft/class_8792;
named createDefault
Lnet/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 thegameProfile
record component.- Returns:
- the value of the
gameProfile
record component
-
latency
public int latency()Returns the value of thelatency
record component.- Returns:
- the value of the
latency
record component
-
syncedOptions
- Mappings:
Namespace Name Mixin selector official c
Lalg;c()Lakg;
intermediary comp_1961
Lnet/minecraft/class_8792;comp_1961()Lnet/minecraft/class_8791;
named syncedOptions
Lnet/minecraft/server/network/ConnectedClientData;syncedOptions()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
-
clientInformation
Returns the value of theclientInformation
record component.- Returns:
- the value of the
clientInformation
record component
-