Package net.lcc.sollib.api.common.config
Class ConfigEntry<T>
java.lang.Object
net.lcc.sollib.api.common.config.ConfigEntry<T>
- All Implemented Interfaces:
Supplier<T>
-
Constructor Summary
ConstructorsConstructorDescriptionConfigEntry(String configId, String path, T fallback) ConfigEntry(SolConfig config, String path, T fallback) ConfigEntry(T fallback) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconvert(com.google.gson.JsonElement result) protected com.google.gson.JsonElementfail()get()com.google.gson.JsonElementgetRaw()voidwithContent(com.google.gson.JsonElement elm) withLogging(boolean shouldLog) withProcessor(Function<com.google.gson.JsonElement, T> processor)
-
Constructor Details
-
ConfigEntry
-
ConfigEntry
-
ConfigEntry
-
-
Method Details