Class ConfigEntry<T>

java.lang.Object
net.lcc.sollib.api.common.config.ConfigEntry<T>
All Implemented Interfaces:
Supplier<T>

public class ConfigEntry<T> extends Object implements Supplier<T>
  • Constructor Details

    • ConfigEntry

      public ConfigEntry(T fallback)
    • ConfigEntry

      public ConfigEntry(String configId, String path, T fallback)
    • ConfigEntry

      public ConfigEntry(SolConfig config, String path, T fallback)
  • Method Details

    • set

      public void set(SolConfig config, String path, T fallback)
    • withProcessor

      public ConfigEntry<T> withProcessor(Function<com.google.gson.JsonElement,T> processor)
    • withContent

      public ConfigEntry<T> withContent(com.google.gson.JsonElement elm)
    • withLogging

      public ConfigEntry<T> withLogging(boolean shouldLog)
    • get

      public T get()
      Specified by:
      get in interface Supplier<T>
    • getRaw

      public com.google.gson.JsonElement getRaw()
    • convert

      protected void convert(com.google.gson.JsonElement result)
    • fail

      protected com.google.gson.JsonElement fail()