public class ClientSettingsC2SPacket extends Object implements Packet<ServerPlayPacketListener>
Modifier and Type | Field and Description |
---|---|
private boolean |
chatColors |
private ChatVisibility |
chatVisibility |
private String |
language |
private Arm |
mainArm |
private int |
playerModelBitMask |
private int |
viewDistance |
Constructor and Description |
---|
ClientSettingsC2SPacket() |
ClientSettingsC2SPacket(String language,
int viewDistance,
ChatVisibility chatVisibility,
boolean chatColors,
int modelBitMask,
Arm mainArm) |
Modifier and Type | Method and Description |
---|---|
void |
apply(ServerPlayPacketListener serverPlayPacketListener) |
ChatVisibility |
getChatVisibility() |
Arm |
getMainArm() |
int |
getPlayerModelBitMask() |
boolean |
hasChatColors() |
void |
read(PacketByteBuf buf) |
void |
write(PacketByteBuf buf) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isWritingErrorSkippable
private String language
private int viewDistance
private ChatVisibility chatVisibility
private boolean chatColors
private int playerModelBitMask
private Arm mainArm
public ClientSettingsC2SPacket()
@Environment(value=CLIENT) public ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm)
public void read(PacketByteBuf buf) throws IOException
read
in interface Packet<ServerPlayPacketListener>
IOException
public void write(PacketByteBuf buf) throws IOException
write
in interface Packet<ServerPlayPacketListener>
IOException
public void apply(ServerPlayPacketListener serverPlayPacketListener)
apply
in interface Packet<ServerPlayPacketListener>
public ChatVisibility getChatVisibility()
public boolean hasChatColors()
public int getPlayerModelBitMask()
public Arm getMainArm()