Class ClientSettingsC2SPacket

java.lang.Object
net.minecraft.network.packet.c2s.play.ClientSettingsC2SPacket
All Implemented Interfaces:
Packet<ServerPlayPacketListener>

public class ClientSettingsC2SPacket
extends Object
implements Packet<ServerPlayPacketListener>
Mappings:
Namespace Name
official sy
intermediary net/minecraft/class_2803
named net/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket
  • Field Details

    • language

      private String language
      Mappings:
      Namespace Name Mixin selector
      official a Lsy;a:Ljava/lang/String;
      intermediary field_12777 Lnet/minecraft/class_2803;field_12777:Ljava/lang/String;
      named language Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;language:Ljava/lang/String;
    • viewDistance

      private int viewDistance
      Mappings:
      Namespace Name Mixin selector
      official b Lsy;b:I
      intermediary field_12780 Lnet/minecraft/class_2803;field_12780:I
      named viewDistance Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;viewDistance:I
    • chatVisibility

      private ChatVisibility chatVisibility
      Mappings:
      Namespace Name Mixin selector
      official c Lsy;c:Lbhj;
      intermediary field_12781 Lnet/minecraft/class_2803;field_12781:Lnet/minecraft/class_1659;
      named chatVisibility Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;chatVisibility:Lnet/minecraft/client/option/ChatVisibility;
    • chatColors

      private boolean chatColors
      Mappings:
      Namespace Name Mixin selector
      official d Lsy;d:Z
      intermediary field_12779 Lnet/minecraft/class_2803;field_12779:Z
      named chatColors Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;chatColors:Z
    • playerModelBitMask

      private int playerModelBitMask
      Mappings:
      Namespace Name Mixin selector
      official e Lsy;e:I
      intermediary field_12778 Lnet/minecraft/class_2803;field_12778:I
      named playerModelBitMask Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;playerModelBitMask:I
    • mainArm

      private Arm mainArm
      Mappings:
      Namespace Name Mixin selector
      official f Lsy;f:Lare;
      intermediary field_12782 Lnet/minecraft/class_2803;field_12782:Lnet/minecraft/class_1306;
      named mainArm Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;mainArm:Lnet/minecraft/util/Arm;
  • Constructor Details

    • ClientSettingsC2SPacket

      public ClientSettingsC2SPacket()
    • ClientSettingsC2SPacket

      @Environment(CLIENT) public ClientSettingsC2SPacket​(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lsy;<init>(Ljava/lang/String;ILbhj;ZILare;)V
      intermediary <init> Lnet/minecraft/class_2803;<init>(Ljava/lang/String;ILnet/minecraft/class_1659;ZILnet/minecraft/class_1306;)V
      named <init> Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;<init>(Ljava/lang/String;ILnet/minecraft/client/option/ChatVisibility;ZILnet/minecraft/util/Arm;)V
  • Method Details

    • read

      public void read​(PacketByteBuf buf) throws IOException
      Specified by:
      read in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official a Lpa;a(Lnw;)V
      intermediary method_11053 Lnet/minecraft/class_2596;method_11053(Lnet/minecraft/class_2540;)V
      named read Lnet/minecraft/network/Packet;read(Lnet/minecraft/network/PacketByteBuf;)V
    • write

      public void write​(PacketByteBuf buf) throws IOException
      Specified by:
      write in interface Packet<ServerPlayPacketListener>
      Throws:
      IOException
      Mappings:
      Namespace Name Mixin selector
      official b Lpa;b(Lnw;)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 Lsy;a(Lss;)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
    • getChatVisibility

      public ChatVisibility getChatVisibility()
      Mappings:
      Namespace Name Mixin selector
      official d Lsy;d()Lbhj;
      intermediary method_12134 Lnet/minecraft/class_2803;method_12134()Lnet/minecraft/class_1659;
      named getChatVisibility Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;getChatVisibility()Lnet/minecraft/client/option/ChatVisibility;
    • hasChatColors

      public boolean hasChatColors()
      Mappings:
      Namespace Name Mixin selector
      official e Lsy;e()Z
      intermediary method_12135 Lnet/minecraft/class_2803;method_12135()Z
      named hasChatColors Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;hasChatColors()Z
    • getPlayerModelBitMask

      public int getPlayerModelBitMask()
      Mappings:
      Namespace Name Mixin selector
      official f Lsy;f()I
      intermediary method_12136 Lnet/minecraft/class_2803;method_12136()I
      named getPlayerModelBitMask Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;getPlayerModelBitMask()I
    • getMainArm

      public Arm getMainArm()
      Mappings:
      Namespace Name Mixin selector
      official g Lsy;g()Lare;
      intermediary method_12132 Lnet/minecraft/class_2803;method_12132()Lnet/minecraft/class_1306;
      named getMainArm Lnet/minecraft/network/packet/c2s/play/ClientSettingsC2SPacket;getMainArm()Lnet/minecraft/util/Arm;