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/SyncedClientOptionsintermediary net/minecraft/class_8791official aqhnamed languageintermediary comp_1951official bnamed viewDistanceintermediary comp_1952official cnamed chatVisibilityintermediary comp_1953official dnamed chatColorsEnabledintermediary comp_1954official enamed playerModelPartsintermediary comp_1955official fnamed mainArmintermediary comp_1956official gnamed filtersTextintermediary comp_1957official hnamed allowsServerListingintermediary comp_1958official i
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theallowsServerListingrecord component.private final booleanThe field for thechatColorsEnabledrecord component.private final ChatVisibilityThe field for thechatVisibilityrecord component.private final booleanThe field for thefiltersTextrecord component.private final StringThe field for thelanguagerecord component.private final ArmThe field for themainArmrecord component.static final intprivate final intThe field for theplayerModelPartsrecord component.private final intThe field for theviewDistancerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSyncedClientOptions(String string, int int2, ChatVisibility chatVisibility, boolean bool, int int3, Arm arm, boolean bool2, boolean bool3) -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theallowsServerListingrecord component.booleanReturns the value of thechatColorsEnabledrecord component.Returns the value of thechatVisibilityrecord component.static SyncedClientOptionsfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thefiltersTextrecord component.final inthashCode()Returns a hash code value for this object.language()Returns the value of thelanguagerecord component.mainArm()Returns the value of themainArmrecord component.intReturns the value of theplayerModelPartsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theviewDistancerecord component.voidwrite(PacketByteBuf buf)
-
Field Details
-
language
The field for thelanguagerecord component. -
viewDistance
private final int viewDistanceThe field for theviewDistancerecord component. -
chatVisibility
The field for thechatVisibilityrecord component. -
chatColorsEnabled
private final boolean chatColorsEnabledThe field for thechatColorsEnabledrecord component. -
playerModelParts
private final int playerModelPartsThe field for theplayerModelPartsrecord component. -
mainArm
The field for themainArmrecord component. -
filtersText
private final boolean filtersTextThe field for thefiltersTextrecord component. -
allowsServerListing
private final boolean allowsServerListingThe field for theallowsServerListingrecord component. -
MAX_LANGUAGE_CODE_LENGTH
public static final int MAX_LANGUAGE_CODE_LENGTH- See Also:
- Mappings:
Namespace Name Mixin selector named MAX_LANGUAGE_CODE_LENGTHLnet/minecraft/network/packet/c2s/common/SyncedClientOptions;MAX_LANGUAGE_CODE_LENGTH:Iintermediary field_46155Lnet/minecraft/class_8791;field_46155:Iofficial aLaqh;a:I
-
-
Constructor Details
-
SyncedClientOptions
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;<init>(Lnet/minecraft/network/PacketByteBuf;)Vintermediary <init>Lnet/minecraft/class_8791;<init>(Lnet/minecraft/class_2540;)Vofficial <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 writeLnet/minecraft/network/packet/c2s/common/SyncedClientOptions;write(Lnet/minecraft/network/PacketByteBuf;)Vintermediary method_53822Lnet/minecraft/class_8791;method_53822(Lnet/minecraft/class_2540;)Vofficial aLaqh;a(Lvw;)V
-
createDefault
- Mappings:
Namespace Name Mixin selector named createDefaultLnet/minecraft/network/packet/c2s/common/SyncedClientOptions;createDefault()Lnet/minecraft/network/packet/c2s/common/SyncedClientOptions;intermediary method_53821Lnet/minecraft/class_8791;method_53821()Lnet/minecraft/class_8791;official aLaqh;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 thelanguagerecord component.- Returns:
- the value of the
languagerecord component
-
viewDistance
public int viewDistance()Returns the value of theviewDistancerecord component.- Returns:
- the value of the
viewDistancerecord component
-
chatVisibility
Returns the value of thechatVisibilityrecord component.- Returns:
- the value of the
chatVisibilityrecord component
-
chatColorsEnabled
public boolean chatColorsEnabled()Returns the value of thechatColorsEnabledrecord component.- Returns:
- the value of the
chatColorsEnabledrecord component
-
playerModelParts
public int playerModelParts()Returns the value of theplayerModelPartsrecord component.- Returns:
- the value of the
playerModelPartsrecord component
-
mainArm
Returns the value of themainArmrecord component.- Returns:
- the value of the
mainArmrecord component
-
filtersText
public boolean filtersText()Returns the value of thefiltersTextrecord component.- Returns:
- the value of the
filtersTextrecord component
-
allowsServerListing
public boolean allowsServerListing()Returns the value of theallowsServerListingrecord component.- Returns:
- the value of the
allowsServerListingrecord component
-