Package redempt.redlib.config.conversion
Class StaticRootConverter
java.lang.Object
redempt.redlib.config.conversion.StaticRootConverter
A converter which saves to and loads from static fields and can only be used as a config target
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> TypeConverter<T>
create
(ConversionManager manager, Class<?> root) Creates a static root converter
-
Constructor Details
-
StaticRootConverter
public StaticRootConverter()
-
-
Method Details
-
create
Creates a static root converter- Type Parameters:
T
- The type- Parameters:
manager
- The ConfigManager handling the dataroot
- The class to save and load from non-transient static fields of- Returns:
- A static root converter
-