Class ShopItemProperty


public class ShopItemProperty extends ShopProperty
  • Constructor Details

    • ShopItemProperty

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

    • load

      public void load(org.bukkit.configuration.ConfigurationSection config)
      Load in a shop item property
      Overrides:
      load in class ShopProperty
      Parameters:
      config - the config to load from
    • readShopItems

      public void readShopItems(Class<?> type)
    • update

      public void update(Object o)
      Update a shop item property
      Overrides:
      update in class ShopProperty
      Parameters:
      o - shop
    • readShopItem

      public void readShopItem(GenesisBuy buy, Class<?> type)
      Read in a shop item
      Parameters:
      buy - the item
      type - the type
    • readShopItem

      public void readShopItem(GenesisBuy buy, GenesisConfigShop configShop, Class<?> type)
      REad in a shop item
      Parameters:
      buy - the item
      configShop - the shop to read from
      type - the type
    • readShop

      public void readShop(GenesisShop shop, Class<?> type)
      Read a shop
      Overrides:
      readShop in class ShopProperty
      Parameters:
      shop - the shop to read
      type - the type
    • containsValue

      public boolean containsValue(Object input, Object value)
      Check if an object contains a value
      Overrides:
      containsValue in class ShopProperty
      Parameters:
      input - where to check it
      value - what to check
      Returns:
    • containsValueShopItem

      public boolean containsValueShopItem(GenesisBuy buy, Object value)
      Check if a shop item contains a value
      Parameters:
      buy -
      value -
      Returns:
      contains or not
    • containsValueAny

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

      public Object getObject(Object input)
      Get the shop item object
      Overrides:
      getObject in class ShopProperty
      Parameters:
      input - the shop to check
      Returns:
      item