Interface ValueImporterRegistry.CodecImporter<S,T>

Type Parameters:
S - The static source value type.
T - The configurable target value type.
Enclosing class:
ValueImporterRegistry
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface ValueImporterRegistry.CodecImporter<S,T>
Functional contract for converting a decoded static LevelBasedValue instance into its corresponding configurable LevelBasedValue counterpart.
  • Method Summary

    Modifier and Type
    Method
    Description
    importFrom(S source, String modId, String group, String propertyPrefix)
    Constructs a configurable value instance from a decoded static source instance.
  • Method Details

    • importFrom

      T importFrom(S source, String modId, String group, String propertyPrefix)
      Constructs a configurable value instance from a decoded static source instance.
      Parameters:
      source - The decoded static LevelBasedValue instance.
      modId - The target mod namespace designated for the configuration manager.
      group - The configuration group identifier.
      propertyPrefix - The base property identifier segment.
      Returns:
      The populated configurable value instance.