java.lang.Object
tech.anonymoushacker1279.immersiveweapons.config.ConfigHelper.ConfigObject<T>
- All Implemented Interfaces:
Supplier<T>
- Enclosing class:
- ConfigHelper
public static class ConfigHelper.ConfigObject<T>
extends Object
implements Supplier<T>
A config-reload-sensitive wrapper around a config field for a complex object
-
Method Summary
void
Sets the config field to a new value and saves the config
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
set
Sets the config field to a new value and saves the config
- Parameters:
value - Value to serialize to the config. If object cannot be serialized, an error will be logged and no change will occur.