Record Class ClientSettingsC2SPacket

java.lang.Object
java.lang.Record
net.minecraft.network.packet.c2s.play.ClientSettingsC2SPacket
Record Components:
language -
viewDistance -
chatVisibility -
chatColors -
playerModelBitMask -
mainArm -
filterText -
allowsListing -
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public record ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int playerModelBitMask, Arm mainArm, boolean filterText, boolean allowsListing) extends Record implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
official ux
intermediary net/minecraft/class_2803
named net/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket
official b
intermediary comp_266
named language
official c
intermediary comp_267
named viewDistance
official d
intermediary comp_268
named chatVisibility
official e
intermediary comp_269
named chatColors
official f
intermediary comp_270
named playerModelBitMask
official g
intermediary comp_271
named mainArm
official h
intermediary comp_272
named filterText
official i
intermediary comp_273
named allowsListing
  • 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.
    • chatColors

      private final boolean chatColors
      The field for the chatColors record component.
    • playerModelBitMask

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

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

      private final boolean filterText
      The field for the filterText record component.
    • allowsListing

      private final boolean allowsListing
      The field for the allowsListing record component.
    • MAX_LANGUAGE_LENGTH

      public static final int MAX_LANGUAGE_LENGTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a:I
      intermediary field_33360 Lnet/minecraft/class_2803;field_33360:I
      named MAX_LANGUAGE_LENGTH Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;MAX_LANGUAGE_LENGTH:I
  • Constructor Details

    • ClientSettingsC2SPacket

      public ClientSettingsC2SPacket(PacketByteBuf buf)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lux;<init>(Lph;)V
      intermediary <init> Lnet/minecraft/class_2803;<init>(Lnet/minecraft/class_2540;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;<init>(Lnet/minecraft/network/PacketByteBuf;)V
    • ClientSettingsC2SPacket

      public ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm, boolean filterText, boolean bool)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lux;<init>(Ljava/lang/String;ILbni;ZILawv;ZZ)V
      intermediary <init> Lnet/minecraft/class_2803;<init>(Ljava/lang/String;ILnet/minecraft/class_1659;ZILnet/minecraft/class_1306;ZZ)V
      named <init> Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;<init>(Ljava/lang/String;ILnet/minecraft/client/option/ChatVisibility;ZILnet/minecraft/util/Arm;ZZ)V
  • Method Details

    • write

      public void write(PacketByteBuf buf)
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lql;a(Lph;)V
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      named write Lnet/minecraft/network/Packet;write(Lnet/minecraft/network/PacketByteBuf;)V
    • apply

      public void apply(ServerPlayPacketListener serverPlayPacketListener)
      Specified by:
      apply in interface Packet<ServerPlayPacketListener>
      Mappings:
      Namespace Name Mixin selector
      official a Lux;a(Lur;)V
      intermediary method_12133 Lnet/minecraft/class_2803;method_12133(Lnet/minecraft/class_2792;)V
      named apply Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;apply(Lnet/minecraft/network/listener/ServerPlayPacketListener;)V
    • 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
    • chatColors

      public boolean chatColors()
      Returns the value of the chatColors record component.
      Returns:
      the value of the chatColors record component
    • playerModelBitMask

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

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

      public boolean filterText()
      Returns the value of the filterText record component.
      Returns:
      the value of the filterText record component
    • allowsListing

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