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 Details

    • language

      private final String language
      The field for the language record component.
    • viewDistance

      private final int viewDistance
      The field for the viewDistance record component.
    • chatVisibility

      private final ChatVisibility chatVisibility
      The field for the chatVisibility record component.
    • chatColorsEnabled

      private final boolean chatColorsEnabled
      The field for the chatColorsEnabled record component.
    • playerModelParts

      private final int playerModelParts
      The field for the playerModelParts record component.
    • mainArm

      private final Arm mainArm
      The field for the mainArm record component.
    • filtersText

      private final boolean filtersText
      The field for the filtersText record component.
    • allowsServerListing

      private final boolean allowsServerListing
      The field for the allowsServerListing 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

      public SyncedClientOptions(PacketByteBuf buf)
      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

      public void write(PacketByteBuf buf)
      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

      public static SyncedClientOptions 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

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • language

      public String language()
      Returns the value of the language record component.
      Returns:
      the value of the language record component
    • viewDistance

      public int viewDistance()
      Returns the value of the viewDistance record component.
      Returns:
      the value of the viewDistance record component
    • chatVisibility

      public ChatVisibility chatVisibility()
      Returns the value of the chatVisibility record component.
      Returns:
      the value of the chatVisibility record component
    • chatColorsEnabled

      public boolean chatColorsEnabled()
      Returns the value of the chatColorsEnabled record component.
      Returns:
      the value of the chatColorsEnabled record component
    • playerModelParts

      public int playerModelParts()
      Returns the value of the playerModelParts record component.
      Returns:
      the value of the playerModelParts record component
    • mainArm

      public Arm mainArm()
      Returns the value of the mainArm record component.
      Returns:
      the value of the mainArm record component
    • filtersText

      public boolean filtersText()
      Returns the value of the filtersText record component.
      Returns:
      the value of the filtersText record component
    • allowsServerListing

      public boolean allowsServerListing()
      Returns the value of the allowsServerListing record component.
      Returns:
      the value of the allowsServerListing record component