Class AttributeModifierConfigPath
java.lang.Object
me.hsgamer.hscore.config.path.AdvancedConfigPath<Map<String,Object>,T>
me.hsgamer.hscore.config.path.SerializableMapConfigPath<org.bukkit.attribute.AttributeModifier>
me.hsgamer.hscore.bukkit.config.path.AttributeModifierConfigPath
- All Implemented Interfaces:
ConfigPath<org.bukkit.attribute.AttributeModifier>
public class AttributeModifierConfigPath
extends SerializableMapConfigPath<org.bukkit.attribute.AttributeModifier>
-
Constructor Summary
ConstructorsConstructorDescriptionAttributeModifierConfigPath(PathString path, org.bukkit.attribute.AttributeModifier def) Create a config path -
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
-
AttributeModifierConfigPath
Create a config path- Parameters:
path- the path to the valuedef- the default value if it's not found
-
-
Method Details
-
convert
public org.bukkit.attribute.AttributeModifier convert(@NotNull @NotNull Map<String, Object> rawValue) - Specified by:
convertin classAdvancedConfigPath<Map<String,Object>, org.bukkit.attribute.AttributeModifier>
-
convertToRaw
public Map<String,Object> convertToRaw(@NotNull @NotNull org.bukkit.attribute.AttributeModifier value) - Specified by:
convertToRawin classAdvancedConfigPath<Map<String,Object>, org.bukkit.attribute.AttributeModifier>
-