Class ShopProperty

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

public class ShopProperty extends SettingsProperty
  • Constructor Details

    • ShopProperty

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

    • load

      public void load(org.bukkit.configuration.ConfigurationSection config)
      Load a section from the config
      Overrides:
      load in class SettingsProperty
      Parameters:
      config - the config to load from
    • readShops

      public void readShops(Class<?> type)
      Read in the shops
      Parameters:
      type - the class type
    • update

      public void update(Object o)
      Update the shops
      Overrides:
      update in class SettingsProperty
      Parameters:
      o - shop
    • readShop

      public void readShop(GenesisShop shop, Class<?> type)
      Read in the shops from the config
      Parameters:
      shop - the shop to read
      type - the type
    • containsValue

      public boolean containsValue(Object input, Object value)
      Check if a shop contains something
      Overrides:
      containsValue in class SettingsProperty
      Parameters:
      input - where to check it
      value - what to check
      Returns:
      contains or not
    • containsValueShop

      public boolean containsValueShop(GenesisShop shop, Object value)
      Check if a setting is contained in a shop
      Parameters:
      shop - the shop to check
      value - the value to check
      Returns:
      contained or not
    • containsValueAny

      public boolean containsValueAny(Object value)
      Check if a shop contains any value
      Overrides:
      containsValueAny in class SettingsProperty
      Parameters:
      value - the value to check
      Returns:
      contained or not
    • getObject

      public Object getObject(Object input)
      Get an object from a shop
      Overrides:
      getObject in class SettingsProperty
      Parameters:
      input - the shop to check
      Returns:
      object