Class SettingsProperty

java.lang.Object
studio.magemonkey.genesis.settings.SettingsProperty
Direct Known Subclasses:
ShopProperty

public class SettingsProperty extends Object
  • Field Details

  • Constructor Details

    • SettingsProperty

      public SettingsProperty(org.bukkit.configuration.ConfigurationSection config, String path, Class<?> type)
  • Method Details

    • load

      public void load(org.bukkit.configuration.ConfigurationSection config)
      Load the settings
      Parameters:
      config - the config to load from
    • read

      public Object read(org.bukkit.configuration.ConfigurationSection config)
      Read the config
      Parameters:
      config - the config to read
      Returns:
      config object
    • update

      public void update(Object o)
      Update a settings property
      Parameters:
      o -
    • containsValue

      public boolean containsValue(Object input, Object value)
      Check if object contains value
      Parameters:
      input - object to check
      value - value to check for
      Returns:
      contains or not
    • containsValueAny

      public boolean containsValueAny(Object value)
      Check if an object contains any value
      Parameters:
      value - the value to check
      Returns:
      contains or not
    • getObject

      public Object getObject(Object input)
      Get the object
      Parameters:
      input - the object to get
      Returns:
      object
    • getString

      public String getString(Object input)
      Get a string from an object
      Parameters:
      input - object
      Returns:
      string
    • getInt

      public int getInt(Object input)
      Get an int from an object
      Parameters:
      input - object
      Returns:
      int
    • getDouble

      public double getDouble(Object input)
      Get a double from an object
      Parameters:
      input - object
      Returns:
      double
    • getStringList

      public List<String> getStringList(Object input)
      Get a string list from an object
      Parameters:
      input - object
      Returns:
      string list
    • getBoolean

      public boolean getBoolean(Object input)
      Get a boolean from an object
      Parameters:
      input - object
      Returns:
      boolean
    • isIdentical

      public boolean isIdentical(Object a, Object b)
      Check if two objects are identical
      Parameters:
      a - obj1
      b - obj2
      Returns:
      identical or not