Record Class SyncedClientOptions
java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.common.SyncedClientOptions
- Record Components:
language
-viewDistance
-chatVisibility
-chatColorsEnabled
-playerModelParts
-mainArm
-filtersText
-allowsServerListing
-
public record SyncedClientOptions(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColorsEnabled, int playerModelParts, Arm mainArm, boolean filtersText, boolean allowsServerListing)
extends Record
- Mappings:
Namespace Name named net/minecraft/network/packet/c2s/common/SyncedClientOptions
intermediary net/minecraft/class_8791
official aqh
named language
intermediary comp_1951
official b
named viewDistance
intermediary comp_1952
official c
named chatVisibility
intermediary comp_1953
official d
named chatColorsEnabled
intermediary comp_1954
official e
named playerModelParts
intermediary comp_1955
official f
named mainArm
intermediary comp_1956
official g
named filtersText
intermediary comp_1957
official h
named allowsServerListing
intermediary comp_1958
official i
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
The field for theallowsServerListing
record component.private final boolean
The field for thechatColorsEnabled
record component.private final ChatVisibility
The field for thechatVisibility
record component.private final boolean
The field for thefiltersText
record component.private final String
The field for thelanguage
record component.private final Arm
The field for themainArm
record component.static final int
private final int
The field for theplayerModelParts
record component.private final int
The field for theviewDistance
record component. -
Constructor Summary
ConstructorDescriptionSyncedClientOptions
(String string, int int2, ChatVisibility chatVisibility, boolean bool, int int3, Arm arm, boolean bool2, boolean bool3) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the value of theallowsServerListing
record component.boolean
Returns the value of thechatColorsEnabled
record component.Returns the value of thechatVisibility
record component.static SyncedClientOptions
final boolean
Indicates whether some other object is "equal to" this one.boolean
Returns the value of thefiltersText
record component.final int
hashCode()
Returns a hash code value for this object.language()
Returns the value of thelanguage
record component.mainArm()
Returns the value of themainArm
record component.int
Returns the value of theplayerModelParts
record component.final String
toString()
Returns a string representation of this record class.int
Returns the value of theviewDistance
record component.void
write
(PacketByteBuf buf)
-
Field Details
-
language
The field for thelanguage
record component. -
viewDistance
private final int viewDistanceThe field for theviewDistance
record component. -
chatVisibility
The field for thechatVisibility
record component. -
chatColorsEnabled
private final boolean chatColorsEnabledThe field for thechatColorsEnabled
record component. -
playerModelParts
private final int playerModelPartsThe field for theplayerModelParts
record component. -
mainArm
The field for themainArm
record component. -
filtersText
private final boolean filtersTextThe field for thefiltersText
record component. -
allowsServerListing
private final boolean allowsServerListingThe field for theallowsServerListing
record component. -
MAX_LANGUAGE_CODE_LENGTH
public static final int MAX_LANGUAGE_CODE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LANGUAGE_CODE_LENGTH
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;MAX_LANGUAGE_CODE_LENGTH:I
intermediary field_46155
Lnet/minecraft/class_8791;field_46155:I
official a
Laqh;a:I
-
-
Constructor Details
-
SyncedClientOptions
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;<init>(Lnet/minecraft/network/PacketByteBuf;)V
intermediary <init>
Lnet/minecraft/class_8791;<init>(Lnet/minecraft/class_2540;)V
official <init>
Laqh;<init>(Lvw;)V
-
SyncedClientOptions
public SyncedClientOptions(String string, int int2, ChatVisibility chatVisibility, boolean bool, int int3, Arm arm, boolean bool2, boolean bool3)
-
-
Method Details
-
write
- Mappings:
Namespace Name Mixin selector named write
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;write(Lnet/minecraft/network/PacketByteBuf;)V
intermediary method_53822
Lnet/minecraft/class_8791;method_53822(Lnet/minecraft/class_2540;)V
official a
Laqh;a(Lvw;)V
-
createDefault
- Mappings:
Namespace Name Mixin selector named createDefault
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;createDefault()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
intermediary method_53821
Lnet/minecraft/class_8791;method_53821()Lnet/minecraft/class_8791;
official a
Laqh;a()Laqh;
-
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 '=='. -
language
Returns the value of thelanguage
record component.- Returns:
- the value of the
language
record component
-
viewDistance
public int viewDistance()Returns the value of theviewDistance
record component.- Returns:
- the value of the
viewDistance
record component
-
chatVisibility
Returns the value of thechatVisibility
record component.- Returns:
- the value of the
chatVisibility
record component
-
chatColorsEnabled
public boolean chatColorsEnabled()Returns the value of thechatColorsEnabled
record component.- Returns:
- the value of the
chatColorsEnabled
record component
-
playerModelParts
public int playerModelParts()Returns the value of theplayerModelParts
record component.- Returns:
- the value of the
playerModelParts
record component
-
mainArm
Returns the value of themainArm
record component.- Returns:
- the value of the
mainArm
record component
-
filtersText
public boolean filtersText()Returns the value of thefiltersText
record component.- Returns:
- the value of the
filtersText
record component
-
allowsServerListing
public boolean allowsServerListing()Returns the value of theallowsServerListing
record component.- Returns:
- the value of the
allowsServerListing
record component
-