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>

public class SimpleConfigKey<T> extends Object implements ConfigKey<T>
Basic ConfigKey implementation.
  • Method Details

    • get

      public T get(ConfigurationAdapter adapter)
      Description copied from interface: ConfigKey
      Resolves and returns the value mapped to this key using the given config instance.
      Specified by:
      get in interface ConfigKey<T>
      Parameters:
      adapter - the config adapter instance
      Returns:
      the value mapped to this key
    • ordinal

      public int ordinal()
      Description copied from interface: ConfigKey
      Gets the position of this key within the keys enum.
      Specified by:
      ordinal in interface ConfigKey<T>
      Returns:
      the position
    • reloadable

      public boolean reloadable()
      Description copied from interface: ConfigKey
      Gets if the config key can be reloaded.
      Specified by:
      reloadable in interface ConfigKey<T>
      Returns:
      the if the key can be reloaded
    • setOrdinal

      public void setOrdinal(int ordinal)
    • setReloadable

      public void setReloadable(boolean reloadable)