Package net.minecraft.server.network
Record Class ConnectedClientData
java.lang.Object
java.lang.Record
net.minecraft.server.network.ConnectedClientData
- Record Components:
gameProfile-latency-syncedOptions-transferred-
public record ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int latency, SyncedClientOptions syncedOptions, boolean transferred)
extends Record
- Mappings:
Namespace Name named net/minecraft/server/network/ConnectedClientDataintermediary net/minecraft/class_8792official arjnamed gameProfileintermediary comp_1959official anamed latencyintermediary comp_1960official bnamed syncedOptionsintermediary comp_1961official cnamed transferredintermediary comp_2202official d
-
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.private final booleanThe field for thetransferredrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions, boolean bool) -
Method Summary
Modifier and TypeMethodDescriptionstatic ConnectedClientDatacreateDefault(com.mojang.authlib.GameProfile profile, boolean bool) 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.booleanReturns the value of thetransferredrecord component.
-
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. -
transferred
private final boolean transferredThe field for thetransferredrecord component.
-
-
Constructor Details
-
ConnectedClientData
public ConnectedClientData(com.mojang.authlib.GameProfile gameProfile, int int2, SyncedClientOptions syncedClientOptions, boolean bool)
-
-
Method Details
-
createDefault
public static ConnectedClientData createDefault(com.mojang.authlib.GameProfile profile, boolean bool) - Mappings:
Namespace Name Mixin selector named createDefaultLnet/minecraft/server/network/ConnectedClientData;createDefault(Lcom/mojang/authlib/GameProfile;Z)Lnet/minecraft/server/network/ConnectedClientData;intermediary method_53824Lnet/minecraft/class_8792;method_53824(Lcom/mojang/authlib/GameProfile;Z)Lnet/minecraft/class_8792;official aLarj;a(Lcom/mojang/authlib/GameProfile;Z)Larj;
-
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
-
transferred
public boolean transferred()Returns the value of thetransferredrecord component.- Returns:
- the value of the
transferredrecord component
-