Class KeyedConfiguration

java.lang.Object
me.lucko.luckperms.common.config.generic.KeyedConfiguration
Direct Known Subclasses:
LuckPermsConfiguration

public class KeyedConfiguration extends Object
  • Constructor Details

  • Method Details

    • init

      protected void init()
    • get

      public <T> T get(ConfigKey<T> key)
      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

      public static List<SimpleConfigKey<?>> initialise(Class<?> keysClass)
      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