Class StaticRootConverter

java.lang.Object
redempt.redlib.config.conversion.StaticRootConverter

public class StaticRootConverter extends Object
A converter which saves to and loads from static fields and can only be used as a config target
  • Constructor Details

    • StaticRootConverter

      public StaticRootConverter()
  • Method Details

    • create

      public static <T> TypeConverter<T> create(ConversionManager manager, Class<?> root)
      Creates a static root converter
      Type Parameters:
      T - The type
      Parameters:
      manager - The ConfigManager handling the data
      root - The class to save and load from non-transient static fields of
      Returns:
      A static root converter