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
intermediary net/minecraft/class_2803
official zl
named net/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket
intermediary comp_266
official b
named language
intermediary comp_267
official c
named viewDistance
intermediary comp_268
official d
named chatVisibility
intermediary comp_269
official e
named chatColors
intermediary comp_270
official f
named playerModelBitMask
intermediary comp_271
official g
named mainArm
intermediary comp_272
official h
named filterText
intermediary comp_273
official i
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
      intermediary field_33360 Lnet/minecraft/class_2803;field_33360:I
      official a Lzl;a: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
      intermediary <init> Lnet/minecraft/class_2803;<init>(Lnet/minecraft/class_2540;)V
      official <init> Lzl;<init>(Lsf;)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
      intermediary <init> Lnet/minecraft/class_2803;<init>(Ljava/lang/String;ILnet/minecraft/class_1659;ZILnet/minecraft/class_1306;ZZ)V
      official <init> Lzl;<init>(Ljava/lang/String;ILbyk;ZILbfr;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
      intermediary method_11052 Lnet/minecraft/class_2596;method_11052(Lnet/minecraft/class_2540;)V
      official a Luo;a(Lsf;)V
      named write Lnet/minecraft/network/packet/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
      intermediary method_12133 Lnet/minecraft/class_2803;method_12133(Lnet/minecraft/class_2792;)V
      official a Lzl;a(Lzb;)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