Class ConfigValue<T>

java.lang.Object
de.luckymcdev.foundryengine.common.bundle.config.ConfigValue<T>
Type Parameters:
T - the value type (Boolean, Integer, Double, String)

public class ConfigValue<T> extends Object
A single typed config value belonging to a BundleConfig. Obtain instances via BundleConfigSpec.
  • Method Details

    • get

      public T get()
      Returns the current value, falling back to the default if unset.
    • getDefault

      public T getDefault()
      Returns the default value for this config entry.
    • getKey

      public String getKey()
    • getComment

      public String getComment()
    • toString

      public String toString()
      Overrides:
      toString in class Object