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 -
particleStatus -

public record SyncedClientOptions(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColorsEnabled, int playerModelParts, Arm mainArm, boolean filtersText, boolean allowsServerListing, ParticlesMode particleStatus) extends Record
Mappings:
Namespace Name
named net/minecraft/network/packet/c2s/common/SyncedClientOptions
intermediary net/minecraft/class_8791
official ars
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
named particleStatus
intermediary comp_2906
official j
  • 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.
    • particleStatus

      private final ParticlesMode particleStatus
      The field for the particleStatus 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 Lars;a:I
  • Constructor Details

    • SyncedClientOptions

      public SyncedClientOptions(PacketByteBuf buf)
      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> Lars;<init>(Lws;)V
    • SyncedClientOptions

      public SyncedClientOptions(String string, int int2, ChatVisibility chatVisibility, boolean bool, int int3, Arm arm, boolean bool2, boolean bool3, ParticlesMode particlesMode)
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      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 Lars;a(Lws;)V
    • createDefault

      public static SyncedClientOptions 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 Lars;a()Lars;
    • 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
    • particleStatus

      public ParticlesMode particleStatus()
      Returns the value of the particleStatus record component.
      Returns:
      the value of the particleStatus record component