Package me.hsgamer.hscore.config
Class DecorativeConfig
java.lang.Object
me.hsgamer.hscore.config.DecorativeConfig
- All Implemented Interfaces:
Config
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDecorativeConfig(Config config) Create a new decorative config -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefault(String path, Object value) Add a default value to the pathbooleanCheck if the configuration contains the pathGet the value from the pathgetComment(String path, CommentType type) Get the comment.getName()Get the name of the configurationGet the original instanceGet the original configGet all values from the pathbooleanisNormalizable(Object object) Check if the object is normalizableNormalize the library-specific objectvoidreload()Reload the configurationvoidsave()Save the configurationvoidSet the value to the pathvoidsetComment(String path, String value, CommentType type) Set the comment This is a default empty method.voidsetup()Set up the configurationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.config.Config
addDefaults, clear, get, getComment, getInstance, getInstance, getKeys, getKeys, getNormalized, getNormalized, getNormalizedValues, getNormalizedValues, getValues, isInstance, normalizeObject, remove, setComment
-
Field Details
-
config
-
-
Constructor Details
-
DecorativeConfig
Create a new decorative config- Parameters:
config- the original config
-
-
Method Details
-
getOriginalConfig
Get the original config- Returns:
- the config
-
getOriginal
Description copied from interface:ConfigGet the original instance- Specified by:
getOriginalin interfaceConfig- Returns:
- the original instance
-
get
Description copied from interface:ConfigGet the value from the path -
set
Description copied from interface:ConfigSet the value to the path -
contains
Description copied from interface:ConfigCheck if the configuration contains the path -
getName
Description copied from interface:ConfigGet the name of the configuration -
addDefault
Description copied from interface:ConfigAdd a default value to the path- Specified by:
addDefaultin interfaceConfig- Parameters:
path- the pathvalue- the value
-
getValues
Description copied from interface:ConfigGet all values from the path -
setup
public void setup()Description copied from interface:ConfigSet up the configuration -
save
public void save()Description copied from interface:ConfigSave the configuration -
reload
public void reload()Description copied from interface:ConfigReload the configuration -
normalize
Description copied from interface:ConfigNormalize the library-specific object -
isNormalizable
Description copied from interface:ConfigCheck if the object is normalizable- Specified by:
isNormalizablein interfaceConfig- Parameters:
object- the object- Returns:
- true if it is
-
getComment
Description copied from interface:ConfigGet the comment. This is a default empty method. The implementation can override this method to support comments.- Specified by:
getCommentin interfaceConfig- Parameters:
path- the pathtype- the comment type- Returns:
- the comment
-
setComment
Description copied from interface:ConfigSet the comment This is a default empty method. The implementation can override this method to support comments.- Specified by:
setCommentin interfaceConfig- Parameters:
path- the pathvalue- the commenttype- the comment type
-