Class FabricSpellFieldEffects

java.lang.Object
johnsmith.enchantingoverhauled.item.enchantment.spellfield.FabricSpellFieldEffects

public final class FabricSpellFieldEffects extends Object
Handles Fabric-side registration of custom SpellFieldEffect codecs for Enchanting Overhauled.

Because Fabric Loader does not topologically sort main entrypoints by fabric.mod.json dependencies, enchanting_overhauled can execute onInitialize() before enchantment_core has created the EnchantmentCoreRegistries.SPELL_FIELD_EFFECT_KEY registry. This class checks whether EnchantmentCoreRegistries.SPELL_FIELD_EFFECTS is already present and, if not, defers registration via RegistryEntryAddedCallback until enchantment_core registers the registry into BuiltInRegistries.REGISTRY.

  • Method Details

    • initialize

      public static void initialize()