Interface ValueImporterRegistry.ValueImporter
- 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.
Functional contract for mutating a static
LevelBasedValue JSON element into a
configuration-backed JSON wrapper.-
Method Summary
Modifier and TypeMethodDescriptioncom.google.gson.JsonElementimportFrom(com.google.gson.JsonElement original, String modId, String group, String propertyPrefix) Transforms the static JSON element into a dynamic configuration-bound JSON object.
-
Method Details
-
importFrom
com.google.gson.JsonElement importFrom(com.google.gson.JsonElement original, String modId, String group, String propertyPrefix) Transforms the static JSON element into a dynamic configuration-bound JSON object.- Parameters:
original- The static JSON element targeted for transformation.modId- The target mod namespace designated for the configuration manager.group- The configuration group identifier (typically the enchantment's path name).propertyPrefix- The base property identifier segment for generated configuration keys.- Returns:
- The transformed JSON element.
-