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>
-
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
-
viewDistance
private int viewDistance -
chatVisibility
-
chatColors
private boolean chatColors -
playerModelBitMask
private int playerModelBitMask -
mainArm
-
-
Constructor Details
-
ClientSettingsC2SPacket
public ClientSettingsC2SPacket() -
ClientSettingsC2SPacket
@Environment(CLIENT) public ClientSettingsC2SPacket(String language, int viewDistance, ChatVisibility chatVisibility, boolean chatColors, int modelBitMask, Arm mainArm)
-
-
Method Details
-
read
- Specified by:
read
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
write
- Specified by:
write
in interfacePacket<ServerPlayPacketListener>
- Throws:
IOException
-
apply
- Specified by:
apply
in interfacePacket<ServerPlayPacketListener>
-
getChatVisibility
-
hasChatColors
public boolean hasChatColors() -
getPlayerModelBitMask
public int getPlayerModelBitMask() -
getMainArm
-