Package me.hsgamer.hscore.config.path
Class SerializableMapConfigPath<T>
java.lang.Object
me.hsgamer.hscore.config.path.AdvancedConfigPath<Map<String,Object>,T>
me.hsgamer.hscore.config.path.SerializableMapConfigPath<T>
- Type Parameters:
T- the type of the final value
- All Implemented Interfaces:
ConfigPath<T>
- Direct Known Subclasses:
MapConfigPath
An serializable map config path
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFromConfig(@NotNull Config config) Get the raw value from the configMethods inherited from class me.hsgamer.hscore.config.path.AdvancedConfigPath
convert, convertToRaw, getConfig, getPath, getValue, getValue, migrateConfig, setConfig, setValue, setValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface me.hsgamer.hscore.config.path.ConfigPath
reload, setAndSave, setAndSave
-
Constructor Details
-
SerializableMapConfigPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found
-
-
Method Details
-
getFromConfig
Description copied from class:AdvancedConfigPathGet the raw value from the config- Specified by:
getFromConfigin classAdvancedConfigPath<Map<String,Object>, T> - Parameters:
config- the config- Returns:
- the raw value
-