Class KeyedConfiguration
java.lang.Object
me.lucko.luckperms.common.config.generic.KeyedConfiguration
- Direct Known Subclasses:
LuckPermsConfiguration
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionKeyedConfiguration(ConfigurationAdapter adapter, List<? extends ConfigKey<?>> keys) -
Method Summary
Modifier and TypeMethodDescription<T> TGets the value of a given context key.protected voidinit()static List<SimpleConfigKey<?>> initialise(Class<?> keysClass) Initialises the given pseudo-enum keys class.protected voidload(boolean initial) voidreload()Reloads the configuration.
-
Constructor Details
-
KeyedConfiguration
-
-
Method Details
-
init
protected void init() -
get
Gets the value of a given context key.- Type Parameters:
T- the key return type- Parameters:
key- the key- Returns:
- the value mapped to the given key. May be null.
-
load
protected void load(boolean initial) -
reload
public void reload()Reloads the configuration. -
initialise
Initialises the given pseudo-enum keys class.- Parameters:
keysClass- the keys class- Returns:
- the list of keys defined by the class with their ordinal values set
-