Class ServerboundClientInformationPacket
java.lang.Object
net.minecraft.network.protocol.game.ServerboundClientInformationPacket
- All Implemented Interfaces:
Packet<ServerGamePacketListener>
public class ServerboundClientInformationPacket
extends Object
implements Packet<ServerGamePacketListener>
-
Field Summary
Modifier and TypeFieldDescriptionprivate boolean
private ChatVisiblity
private String
private HumanoidArm
static int
private int
private boolean
private int
-
Constructor Summary
ConstructorDescriptionServerboundClientInformationPacket(String p_179552_, int p_179553_, ChatVisiblity p_179554_, boolean p_179555_, int p_179556_, HumanoidArm p_179557_, boolean p_179558_)
ServerboundClientInformationPacket(FriendlyByteBuf p_179560_)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
int
int
void
handle(ServerGamePacketListener p_133882_)
boolean
void
write(FriendlyByteBuf p_133884_)
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.protocol.Packet
isSkippable
-
Field Details
-
MAX_LANGUAGE_LENGTH
public static final int MAX_LANGUAGE_LENGTH- See Also:
- Constant Field Values
-
language
-
viewDistance
private final int viewDistance -
chatVisibility
-
chatColors
private final boolean chatColors -
modelCustomisation
private final int modelCustomisation -
mainHand
-
textFilteringEnabled
private final boolean textFilteringEnabled
-
-
Constructor Details
-
ServerboundClientInformationPacket
public ServerboundClientInformationPacket(String p_179552_, int p_179553_, ChatVisiblity p_179554_, boolean p_179555_, int p_179556_, HumanoidArm p_179557_, boolean p_179558_) -
ServerboundClientInformationPacket
-
-
Method Details
-
write
- Specified by:
write
in interfacePacket<ServerGamePacketListener>
-
handle
- Specified by:
handle
in interfacePacket<ServerGamePacketListener>
-
getLanguage
-
getViewDistance
public int getViewDistance() -
getChatVisibility
-
getChatColors
public boolean getChatColors() -
getModelCustomisation
public int getModelCustomisation() -
getMainHand
-
isTextFilteringEnabled
public boolean isTextFilteringEnabled()
-