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 enum
Enum 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 TypeMethodDescriptionboolean
Gets whether the client wants to appear in the server's public player list (player sample in server ping)boolean
Gets whether the client renders chat colorscom.comphenix.protocol.wrappers.EnumWrappers.ChatVisibility
Retrieves the chat visibilityGets the language selected in the client, e.g.Retrieves the main arm of the clientint
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 enabledboolean
Gets whether filtering of content is enabled on client sideint
Retrieves the value of field 'viewDistance'void
setAllowsListing
(boolean value) Sets whether the client wants to appear in the server's public player list (player sample in server ping)void
setChatColors
(boolean value) Sets whether the client renders chat colorsvoid
setChatVisibility
(com.comphenix.protocol.wrappers.EnumWrappers.ChatVisibility value) Sets the chat visibilityvoid
setLanguage
(String value) Sets the language selected in the client, e.g.void
Sets the main arm of the clientvoid
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 enabledvoid
setTextFilteringEnabled
(boolean value) Sets whether filtering of content is enabled on client sidevoid
setViewDistance
(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'
-