Class SettingsProperty
java.lang.Object
studio.magemonkey.genesis.settings.SettingsProperty
- Direct Known Subclasses:
ShopProperty
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSettingsProperty(org.bukkit.configuration.ConfigurationSection config, String path, Class<?> type) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsValue(Object input, Object value) Check if object contains valuebooleancontainsValueAny(Object value) Check if an object contains any valuebooleangetBoolean(Object input) Get a boolean from an objectdoubleGet a double from an objectintGet an int from an objectGet the objectGet a string from an objectgetStringList(Object input) Get a string list from an objectbooleanisIdentical(Object a, Object b) Check if two objects are identicalvoidload(org.bukkit.configuration.ConfigurationSection config) Load the settingsread(org.bukkit.configuration.ConfigurationSection config) Read the configvoidUpdate a settings property
-
Field Details
-
path
-
o
-
type
-
-
Constructor Details
-
SettingsProperty
-
-
Method Details
-
load
public void load(org.bukkit.configuration.ConfigurationSection config) Load the settings- Parameters:
config- the config to load from
-
read
Read the config- Parameters:
config- the config to read- Returns:
- config object
-
update
Update a settings property- Parameters:
o-
-
containsValue
Check if object contains value- Parameters:
input- object to checkvalue- value to check for- Returns:
- contains or not
-
containsValueAny
Check if an object contains any value- Parameters:
value- the value to check- Returns:
- contains or not
-
getObject
Get the object- Parameters:
input- the object to get- Returns:
- object
-
getString
Get a string from an object- Parameters:
input- object- Returns:
- string
-
getInt
Get an int from an object- Parameters:
input- object- Returns:
- int
-
getDouble
Get a double from an object- Parameters:
input- object- Returns:
- double
-
getStringList
Get a string list from an object- Parameters:
input- object- Returns:
- string list
-
getBoolean
Get a boolean from an object- Parameters:
input- object- Returns:
- boolean
-
isIdentical
Check if two objects are identical- Parameters:
a- obj1b- obj2- Returns:
- identical or not
-