Class PlayerSettings


  • public class PlayerSettings
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static int getBitValue​(int id)
      Gets the specified bit value using the cache's varbit ID
      static int getCleanedConfig​(int id, int and)
      Gets the specified config value, cleaned with given bitwise and value
      static int getConfig​(int id)
      Gets the specified config value configs are also known as varps or varplayers
      static int[] getConfigs()
      Gets player settings
      static int[] getVarBits()  
      static java.util.Set<java.lang.Integer> getVarBitsForVarp​(int varp)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getConfig

        public static int getConfig​(int id)
        Gets the specified config value configs are also known as varps or varplayers
        Parameters:
        id - Config ID
        Returns:
        Config value
      • getBitValue

        public static int getBitValue​(int id)
        Gets the specified bit value using the cache's varbit ID
        Parameters:
        id - Config ID
        Returns:
        Bit value
      • getCleanedConfig

        public static int getCleanedConfig​(int id,
                                           int and)
        Gets the specified config value, cleaned with given bitwise and value
        Parameters:
        id - Config ID
        and - value to clean config value with by bitwise and operation
        Returns:
        Cleaned config value
      • getConfigs

        public static int[] getConfigs()
        Gets player settings
        Returns:
        player settings
      • getVarBitsForVarp

        public static java.util.Set<java.lang.Integer> getVarBitsForVarp​(int varp)
      • getVarBits

        public static int[] getVarBits()