Class MapConfigPath
java.lang.Object
me.hsgamer.hscore.config.path.AdvancedConfigPath<Map<String,Object>,T>
me.hsgamer.hscore.config.path.SerializableMapConfigPath<Map<String,Object>>
me.hsgamer.hscore.config.path.impl.MapConfigPath
- All Implemented Interfaces:
ConfigPath<Map<String,Object>>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class me.hsgamer.hscore.config.path.SerializableMapConfigPath
getFromConfigMethods inherited from class me.hsgamer.hscore.config.path.AdvancedConfigPath
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
-
MapConfigPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found
-
-
Method Details
-
convert
@Nullable public @Nullable Map<String,Object> convert(@NotNull @NotNull Map<String, Object> rawValue) Description copied from class:AdvancedConfigPathConvert to the final value -
convertToRaw
@Nullable public @Nullable Map<String,Object> convertToRaw(@NotNull @NotNull Map<String, Object> value) Description copied from class:AdvancedConfigPathConvert to the raw value- Specified by:
convertToRawin classAdvancedConfigPath<Map<String,Object>, Map<String, Object>> - Parameters:
value- the value- Returns:
- the raw value
-