Class WrapperPlayClientSettings
java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.serverbound.WrapperPlayClientSettings
Send by client to server after login or when client settings change.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum representing the arm of a human -
Field Summary
FieldsFields inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
handle -
Constructor Summary
ConstructorsConstructorDescriptionWrapperPlayClientSettings(com.comphenix.protocol.events.PacketContainer packet) -
Method Summary
Modifier and TypeMethodDescriptionbooleanGets whether the client wants to appear in the server's public player list (player sample in server ping)booleanGets whether the client renders chat colorscom.comphenix.protocol.wrappers.EnumWrappers.ChatVisibilityRetrieves the chat visibilityGets the language selected in the client, e.g.Retrieves the main arm of the clientintRetrieves a bit mask for displayed skin parts Bit 0 (0x01): Cape enabled Bit 1 (0x02): Jacket enabled Bit 2 (0x04): Left Sleeve enabled Bit 3 (0x08): Right Sleeve enabled Bit 4 (0x10): Left Pants Leg enabled Bit 5 (0x20): Right Pants Leg enabled Bit 6 (0x40): Hat enabledbooleanGets whether filtering of content is enabled on client sideintRetrieves the value of field 'viewDistance'voidsetAllowsListing(boolean value) Sets whether the client wants to appear in the server's public player list (player sample in server ping)voidsetChatColors(boolean value) Sets whether the client renders chat colorsvoidsetChatVisibility(com.comphenix.protocol.wrappers.EnumWrappers.ChatVisibility value) Sets the chat visibilityvoidsetLanguage(String value) Sets the language selected in the client, e.g.voidSets the main arm of the clientvoidsetModelCustomisation(int value) Sets the bit mask for displayed skin parts Bit 0 (0x01): Cape enabled Bit 1 (0x02): Jacket enabled Bit 2 (0x04): Left Sleeve enabled Bit 3 (0x08): Right Sleeve enabled Bit 4 (0x10): Left Pants Leg enabled Bit 5 (0x20): Right Pants Leg enabled Bit 6 (0x40): Hat enabledvoidsetTextFilteringEnabled(boolean value) Sets whether filtering of content is enabled on client sidevoidsetViewDistance(int value) Sets the value of field 'viewDistance'Methods inherited from class com.comphenix.packetwrapper.wrappers.AbstractPacket
broadcastPacket, equals, getHandle, hashCode, receivePacket, sendPacket
-
Field Details
-
TYPE
public static final com.comphenix.protocol.PacketType TYPE
-
-
Constructor Details
-
WrapperPlayClientSettings
public WrapperPlayClientSettings() -
WrapperPlayClientSettings
public WrapperPlayClientSettings(com.comphenix.protocol.events.PacketContainer packet)
-
-
Method Details
-
getLanguage
Gets the language selected in the client, e.g. "de_DE" or "en_US"- Returns:
- 'language'
-
setLanguage
Sets the language selected in the client, e.g. "de_DE" or "en_US"- Parameters:
value- New value for field 'language'
-
getViewDistance
public int getViewDistance()Retrieves the value of field 'viewDistance'- Returns:
- 'viewDistance'
-
setViewDistance
public void setViewDistance(int value) Sets the value of field 'viewDistance'- Parameters:
value- New value for field 'viewDistance'
-
getChatVisibility
public com.comphenix.protocol.wrappers.EnumWrappers.ChatVisibility getChatVisibility()Retrieves the chat visibility- Returns:
- 'chatVisibility'
-
setChatVisibility
public void setChatVisibility(com.comphenix.protocol.wrappers.EnumWrappers.ChatVisibility value) Sets the chat visibility- Parameters:
value- New value for field 'chatVisibility'
-
getChatColors
public boolean getChatColors()Gets whether the client renders chat colors- Returns:
- 'chatColors'
-
setChatColors
public void setChatColors(boolean value) Sets whether the client renders chat colors- Parameters:
value- New value for field 'chatColors'
-
getModelCustomisation
public int getModelCustomisation()Retrieves a bit mask for displayed skin parts Bit 0 (0x01): Cape enabled Bit 1 (0x02): Jacket enabled Bit 2 (0x04): Left Sleeve enabled Bit 3 (0x08): Right Sleeve enabled Bit 4 (0x10): Left Pants Leg enabled Bit 5 (0x20): Right Pants Leg enabled Bit 6 (0x40): Hat enabled- Returns:
- 'modelCustomisation'
-
setModelCustomisation
public void setModelCustomisation(int value) Sets the bit mask for displayed skin parts Bit 0 (0x01): Cape enabled Bit 1 (0x02): Jacket enabled Bit 2 (0x04): Left Sleeve enabled Bit 3 (0x08): Right Sleeve enabled Bit 4 (0x10): Left Pants Leg enabled Bit 5 (0x20): Right Pants Leg enabled Bit 6 (0x40): Hat enabled- Parameters:
value- New value for field 'modelCustomisation'
-
getMainHand
Retrieves the main arm of the client- Returns:
- 'mainHand'
-
setMainHand
Sets the main arm of the client- Parameters:
value- New value for field 'mainHand'
-
getTextFilteringEnabled
public boolean getTextFilteringEnabled()Gets whether filtering of content is enabled on client side- Returns:
- 'textFilteringEnabled'
-
setTextFilteringEnabled
public void setTextFilteringEnabled(boolean value) Sets whether filtering of content is enabled on client side- Parameters:
value- New value for field 'textFilteringEnabled'
-
getAllowsListing
public boolean getAllowsListing()Gets whether the client wants to appear in the server's public player list (player sample in server ping)- Returns:
- 'allowsListing'
-
setAllowsListing
public void setAllowsListing(boolean value) Sets whether the client wants to appear in the server's public player list (player sample in server ping)- Parameters:
value- New value for field 'allowsListing'
-