Class AnchorRendererRegistry
java.lang.Object
johnsmith.enchantmentcore.api.client.render.AnchorRendererRegistry
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 Summary
Modifier and TypeMethodDescriptionstatic @Nullable AnchorModelRendererget(net.minecraft.resources.ResourceLocation modelId) Retrieves the registered model renderer associated with the given identifier.static voidregister(net.minecraft.resources.ResourceLocation modelId, AnchorModelRenderer renderer) Registers a custom model renderer under the specified resource location identifier.
-
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 uniqueResourceLocationmatching the anchor'smodel_idconfiguration.renderer- TheAnchorModelRendererdelegate 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 uniqueResourceLocationidentifier of the model.- Returns:
- The bound
AnchorModelRendererdelegate, ornullif no renderer is registered for the identifier.
-