Class WrapperPlayClientSettings

java.lang.Object
com.comphenix.packetwrapper.wrappers.AbstractPacket
com.comphenix.packetwrapper.wrappers.play.serverbound.WrapperPlayClientSettings

public class WrapperPlayClientSettings extends AbstractPacket
Send by client to server after login or when client settings change.
  • 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

      public String getLanguage()
      Gets the language selected in the client, e.g. "de_DE" or "en_US"
      Returns:
      'language'
    • setLanguage

      public void setLanguage(String value)
      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

      public void setMainHand(WrapperPlayClientSettings.HumanoidArm value)
      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'