Package johnsmith.enchantmentcore.api.registry
package johnsmith.enchantmentcore.api.registry
-
ClassDescriptionCentralized registry managing the bidirectional transformation of enchantment JSON definitions between static datapack formats and dynamic Config Overhauled configuration wrappers.Specialized
DataTransformerRegistry.Transformerimplementation for wrapping and unwrapping thebaseandper_level_above_firstsub-fields of an enchantment cost block (min_costormax_cost).RecursiveDataTransformerRegistry.Transformerimplementation that traverses the"effects"tree of an enchantment JSON object, converting registeredDataTransformerRegistry.getEffectProperties()nodes viaValueImporterRegistryandValueExporterRegistrywhile respecting type and structural exclusions.StandardDataTransformerRegistry.Transformerimplementation for wrapping and unwrapping top-level enchantment definition fields into{"config": ..., "fallback": ...}objects.Contract for executing targeted bidirectional JSON transformations on an enchantment root object.Defines custom entity types utilized by the Enchantment Core library.Manages custom static registries required for the modular spell field system.Defines all customMapCodecs (forEnchantmentEntityEffectandEnchantmentLocationBasedEffect) andDataComponentTypes (for enchantment effect components and item stack data components) provided by Enchantment Core.Defines custom mathematical formulas for the vanillaLevelBasedValueecosystem.Functional provider supplying the JSON property key names within an effect or data record that holdLevelBasedValuedefinitions.Centralized registration helper for binding built-in spell fieldDistanceScalingFunctions,SpellFieldShapes, andSpellFieldEffects to their custom registries across all mod loaders.Manages the reverse transformation of dynamic, configuration-backedLevelBasedValueJSON objects back into static vanilla or non-configurable representations during the/enchantment_core exportphase.Functional contract for reconstructing a staticLevelBasedValueinstance from a parsed configurable instance during DFU codec evaluation.Functional contract for collapsing a configurable JSON object into its static JSON representation.Manages the interception of staticLevelBasedValueJSON nodes and coordinates their transformation into dynamic configuration-bound structures during the/enchantment_core importphase.Functional contract for converting a decoded staticLevelBasedValueinstance into its corresponding configurableLevelBasedValuecounterpart.Functional contract for mutating a staticLevelBasedValueJSON element into a configuration-backed JSON wrapper.