Class SimpleConfigKey<T>
java.lang.Object
me.lucko.luckperms.common.config.generic.key.SimpleConfigKey<T>
- Type Parameters:
T- the value type
- All Implemented Interfaces:
ConfigKey<T>
Basic
ConfigKey implementation.-
Method Summary
Modifier and TypeMethodDescriptionget(ConfigurationAdapter adapter) Resolves and returns the value mapped to this key using the given config instance.intordinal()Gets the position of this key within the keys enum.booleanGets if the config key can be reloaded.voidsetOrdinal(int ordinal) voidsetReloadable(boolean reloadable)
-
Method Details
-
get
Description copied from interface:ConfigKeyResolves and returns the value mapped to this key using the given config instance. -
ordinal
public int ordinal()Description copied from interface:ConfigKeyGets the position of this key within the keys enum. -
reloadable
public boolean reloadable()Description copied from interface:ConfigKeyGets if the config key can be reloaded.- Specified by:
reloadablein interfaceConfigKey<T>- Returns:
- the if the key can be reloaded
-
setOrdinal
public void setOrdinal(int ordinal) -
setReloadable
public void setReloadable(boolean reloadable)
-