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
    submit(SpellFieldAnchorRenderer.SpellFieldAnchorRenderState state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector nodeCollector, net.minecraft.client.renderer.state.level.CameraRenderState cameraRenderState)
    Submits custom model geometry to the render graph for the specified anchor render state.
  • Method Details

    • submit

      void submit(SpellFieldAnchorRenderer.SpellFieldAnchorRenderState state, com.mojang.blaze3d.vertex.PoseStack poseStack, net.minecraft.client.renderer.SubmitNodeCollector nodeCollector, net.minecraft.client.renderer.state.level.CameraRenderState cameraRenderState)
      Submits custom model geometry to the render graph for the specified anchor render state.
      Parameters:
      state - The extracted render state data for the anchor entity.
      poseStack - The active transformation matrix stack.
      nodeCollector - The graph-based geometry collector for deferred rendering.
      cameraRenderState - Active camera state data, including packed light values and culling frustums.