Class ShopProperty
java.lang.Object
studio.magemonkey.genesis.settings.SettingsProperty
studio.magemonkey.genesis.settings.ShopProperty
- Direct Known Subclasses:
ShopItemProperty
-
Field Summary
Fields inherited from class studio.magemonkey.genesis.settings.SettingsProperty
o, path, type -
Constructor Summary
ConstructorsConstructorDescriptionShopProperty(org.bukkit.configuration.ConfigurationSection config, String path, Class<?> type) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Object input, Object value) Check if a shop contains somethingbooleancontainsValueAny(Object value) Check if a shop contains any valuebooleancontainsValueShop(GenesisShop shop, Object value) Check if a setting is contained in a shopGet an object from a shopvoidload(org.bukkit.configuration.ConfigurationSection config) Load a section from the configvoidreadShop(GenesisShop shop, Class<?> type) Read in the shops from the configvoidRead in the shopsvoidUpdate the shopsMethods inherited from class studio.magemonkey.genesis.settings.SettingsProperty
getBoolean, getDouble, getInt, getString, getStringList, isIdentical, read
-
Constructor Details
-
ShopProperty
-
-
Method Details
-
load
public void load(org.bukkit.configuration.ConfigurationSection config) Load a section from the config- Overrides:
loadin classSettingsProperty- Parameters:
config- the config to load from
-
readShops
Read in the shops- Parameters:
type- the class type
-
update
Update the shops- Overrides:
updatein classSettingsProperty- Parameters:
o- shop
-
readShop
Read in the shops from the config- Parameters:
shop- the shop to readtype- the type
-
containsValue
Check if a shop contains something- Overrides:
containsValuein classSettingsProperty- Parameters:
input- where to check itvalue- what to check- Returns:
- contains or not
-
containsValueShop
Check if a setting is contained in a shop- Parameters:
shop- the shop to checkvalue- the value to check- Returns:
- contained or not
-
containsValueAny
Check if a shop contains any value- Overrides:
containsValueAnyin classSettingsProperty- Parameters:
value- the value to check- Returns:
- contained or not
-
getObject
Get an object from a shop- Overrides:
getObjectin classSettingsProperty- Parameters:
input- the shop to check- Returns:
- object
-