Interface AnchorModelRenderer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AnchorModelRenderer
Functional contract for executing custom client-side 3D model rendering logic for SpellFieldAnchorEntity instances.

Implementations are registered through AnchorRendererRegistry and invoked during the entity rendering pass when a spell field anchor specifies a matching model_id in its visual configuration.

  • Method Summary

    Modifier and Type
    Method
    Description
    void
    render(SpellFieldAnchorRenderer.SpellFieldAnchorRenderState state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight)
    Renders a custom model representation for the specified anchor render state.
  • Method Details

    • render

      void render(SpellFieldAnchorRenderer.SpellFieldAnchorRenderState state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.MultiBufferSource bufferSource, int packedLight)
      Renders a custom model representation for the specified anchor render state.
      Parameters:
      state - The extracted render state data for the anchor entity.
      poseStack - The active transformation matrix stack.
      bufferSource - The multi-buffer source providing vertex consumers.
      packedLight - The combined block and sky light values at the entity's position.