Class ShopItemProperty
java.lang.Object
studio.magemonkey.genesis.settings.SettingsProperty
studio.magemonkey.genesis.settings.ShopProperty
studio.magemonkey.genesis.settings.ShopItemProperty
-
Field Summary
Fields inherited from class studio.magemonkey.genesis.settings.SettingsProperty
o, path, type -
Constructor Summary
ConstructorsConstructorDescriptionShopItemProperty(org.bukkit.configuration.ConfigurationSection config, String path, Class<?> type) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Object input, Object value) Check if an object contains a valuebooleancontainsValueAny(Object value) Check if a shop item contains any valuebooleancontainsValueShopItem(GenesisBuy buy, Object value) Check if a shop item contains a valueGet the shop item objectvoidload(org.bukkit.configuration.ConfigurationSection config) Load in a shop item propertyvoidreadShop(GenesisShop shop, Class<?> type) Read a shopvoidreadShopItem(GenesisBuy buy, Class<?> type) Read in a shop itemvoidreadShopItem(GenesisBuy buy, GenesisConfigShop configShop, Class<?> type) REad in a shop itemvoidreadShopItems(Class<?> type) voidUpdate a shop item propertyMethods inherited from class studio.magemonkey.genesis.settings.ShopProperty
containsValueShop, readShopsMethods inherited from class studio.magemonkey.genesis.settings.SettingsProperty
getBoolean, getDouble, getInt, getString, getStringList, isIdentical, read
-
Constructor Details
-
ShopItemProperty
-
-
Method Details
-
load
public void load(org.bukkit.configuration.ConfigurationSection config) Load in a shop item property- Overrides:
loadin classShopProperty- Parameters:
config- the config to load from
-
readShopItems
-
update
Update a shop item property- Overrides:
updatein classShopProperty- Parameters:
o- shop
-
readShopItem
Read in a shop item- Parameters:
buy- the itemtype- the type
-
readShopItem
REad in a shop item- Parameters:
buy- the itemconfigShop- the shop to read fromtype- the type
-
readShop
Read a shop- Overrides:
readShopin classShopProperty- Parameters:
shop- the shop to readtype- the type
-
containsValue
Check if an object contains a value- Overrides:
containsValuein classShopProperty- Parameters:
input- where to check itvalue- what to check- Returns:
-
containsValueShopItem
Check if a shop item contains a value- Parameters:
buy-value-- Returns:
- contains or not
-
containsValueAny
Check if a shop item contains any value- Overrides:
containsValueAnyin classShopProperty- Parameters:
value- the value to check- Returns:
- contains or not
-
getObject
Get the shop item object- Overrides:
getObjectin classShopProperty- Parameters:
input- the shop to check- Returns:
- item
-