Class DirectlyDefinedReward
java.lang.Object
com.bencodez.advancedcore.api.rewards.DirectlyDefinedReward
- All Implemented Interfaces:
DefinedReward
Abstract class for directly defined rewards.
-
Constructor Summary
ConstructorsConstructorDescriptionDirectlyDefinedReward(String path) Instantiates a new directly defined reward. -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcreateSection(String key) Creates a section.voidcreateSectionLocal(String key) Creates a local section.abstract org.bukkit.configuration.ConfigurationSectionGets the file data.Gets the full path.Gets the reward.Gets the value.booleanChecks if directly defined.needsDot()Needs dot separator.abstract voidsave()Saves the configuration.abstract voidSets the data.voidsetParentValue(Object value) Sets the parent value.voidSets the value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.bencodez.advancedcore.api.rewards.DefinedReward
getPath
-
Constructor Details
-
DirectlyDefinedReward
Instantiates a new directly defined reward.- Parameters:
path- the path
-
-
Method Details
-
createSection
Description copied from interface:DefinedRewardCreates a section.- Specified by:
createSectionin interfaceDefinedReward- Parameters:
key- the key
-
createSectionLocal
Creates a local section.- Parameters:
key- the key
-
getFileData
public abstract org.bukkit.configuration.ConfigurationSection getFileData()Description copied from interface:DefinedRewardGets the file data.- Specified by:
getFileDatain interfaceDefinedReward- Returns:
- the file data
-
getFullPath
Gets the full path.- Specified by:
getFullPathin interfaceDefinedReward- Returns:
- the full path
-
getReward
Gets the reward.- Returns:
- the reward
-
getValue
Gets the value.- Parameters:
path- the path- Returns:
- the value
-
isDirectlyDefined
public boolean isDirectlyDefined()Checks if directly defined.- Returns:
- true if directly defined
-
needsDot
Description copied from interface:DefinedRewardNeeds dot separator.- Specified by:
needsDotin interfaceDefinedReward- Returns:
- the dot string
-
save
public abstract void save()Description copied from interface:DefinedRewardSaves the configuration.- Specified by:
savein interfaceDefinedReward
-
setData
Description copied from interface:DefinedRewardSets the data.- Specified by:
setDatain interfaceDefinedReward- Parameters:
path- the pathvalue- the value
-
setParentValue
Sets the parent value.- Parameters:
value- the value
-
setValue
Sets the value.- Parameters:
path- the pathvalue- the value
-