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 Summary
Fields Modifier and Type Field Description private boolean
chatColors
private ChatVisibility
chatVisibility
private String
language
private Arm
mainArm
private int
playerModelBitMask
private int
viewDistance
-
Constructor Summary
Constructors Constructor Description ClientSettingsC2SPacket()
ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm)
-
Method Summary
Modifier and Type Method Description void
apply(ServerPlayPacketListener serverPlayPacketListener)
ChatVisibility
getChatVisibility()
Arm
getMainArm()
int
getPlayerModelBitMask()
boolean
hasChatColors()
void
read(PacketByteBuf buf)
void
write(PacketByteBuf buf)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.network.Packet
isWritingErrorSkippable
-
Field Details
-
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
- 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
- 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
- Specified by:
read
in interfacePacket<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
- Specified by:
write
in interfacePacket<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
- Specified by:
apply
in interfacePacket<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
- 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
- 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;
-