Class AnchorRendererRegistry

java.lang.Object
johnsmith.enchantmentcore.api.client.render.AnchorRendererRegistry

public final class AnchorRendererRegistry extends Object
Client-side registry mapping unique model identifiers to custom AnchorModelRenderer delegates.

Allows dependent mods to register bespoke 3D entity models or procedural geometry renderers for spell field anchors referenced via AnchorVisualConfig.modelId().

  • Method Details

    • register

      public static void register(net.minecraft.resources.ResourceLocation modelId, AnchorModelRenderer renderer)
      Registers a custom model renderer under the specified resource location identifier.
      Parameters:
      modelId - The unique ResourceLocation matching the anchor's model_id configuration.
      renderer - The AnchorModelRenderer delegate responsible for rendering the custom model.
    • get

      @Nullable public static @Nullable AnchorModelRenderer get(net.minecraft.resources.ResourceLocation modelId)
      Retrieves the registered model renderer associated with the given identifier.
      Parameters:
      modelId - The unique ResourceLocation identifier of the model.
      Returns:
      The bound AnchorModelRenderer delegate, or null if no renderer is registered for the identifier.