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 official ams
intermediary net/minecraft/class_8791
named net/minecraft/network/packet/c2s/common/SyncedClientOptions
official b
intermediary comp_1951
named language
official c
intermediary comp_1952
named viewDistance
official d
intermediary comp_1953
named chatVisibility
official e
intermediary comp_1954
named chatColorsEnabled
official f
intermediary comp_1955
named playerModelParts
official g
intermediary comp_1956
named mainArm
official h
intermediary comp_1957
named filtersText
official i
intermediary comp_1958
named allowsServerListing
-
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 official a
Lams;a:I
intermediary field_46155
Lnet/minecraft/class_8791;field_46155:I
named MAX_LANGUAGE_CODE_LENGTH
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;MAX_LANGUAGE_CODE_LENGTH:I
-
-
Constructor Details
-
SyncedClientOptions
- Mappings:
Namespace Name Mixin selector official <init>
Lams;<init>(Lui;)V
intermediary <init>
Lnet/minecraft/class_8791;<init>(Lnet/minecraft/class_2540;)V
named <init>
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;<init>(Lnet/minecraft/network/PacketByteBuf;)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 official a
Lams;a(Lui;)V
intermediary method_53822
Lnet/minecraft/class_8791;method_53822(Lnet/minecraft/class_2540;)V
named write
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;write(Lnet/minecraft/network/PacketByteBuf;)V
-
createDefault
- Mappings:
Namespace Name Mixin selector official a
Lams;a()Lams;
intermediary method_53821
Lnet/minecraft/class_8791;method_53821()Lnet/minecraft/class_8791;
named createDefault
Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;createDefault()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;
-
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
-