Class SpellFieldDebugRenderer

java.lang.Object
johnsmith.enchantmentcore.client.debug.SpellFieldDebugRenderer
All Implemented Interfaces:
net.minecraft.client.renderer.debug.DebugRenderer.SimpleDebugRenderer

public class SpellFieldDebugRenderer extends Object implements net.minecraft.client.renderer.debug.DebugRenderer.SimpleDebugRenderer
Primary debug renderer for Enchantment Core spell fields. Implements a hybrid rendering architecture compatible with Minecraft 1.21.11. Bounding boxes are delegated to the native Gizmos API. Complex mathematical surfaces, origin axes, and vector fields are simulated as 3D quad volumes and batched via MultiBufferSource to bypass hardware line shader restrictions.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    emitGizmos(double cx, double cy, double cz, net.minecraft.util.debug.DebugValueAccess debugValueAccess, net.minecraft.client.renderer.culling.Frustum frustum, float partialTick)
    Entry point for the 1.21.11 debug rendering pipeline.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SpellFieldDebugRenderer

      public SpellFieldDebugRenderer()
  • Method Details

    • emitGizmos

      public void emitGizmos(double cx, double cy, double cz, net.minecraft.util.debug.DebugValueAccess debugValueAccess, net.minecraft.client.renderer.culling.Frustum frustum, float partialTick)
      Entry point for the 1.21.11 debug rendering pipeline. Executes the hybrid drawing routine for all active spell fields.
      Specified by:
      emitGizmos in interface net.minecraft.client.renderer.debug.DebugRenderer.SimpleDebugRenderer
      Parameters:
      cx - Camera X translation.
      cy - Camera Y translation.
      cz - Camera Z translation.
      debugValueAccess - System debug value access instance.
      frustum - Active camera culling frustum.
      partialTick - Engine partial tick for coordinate interpolation.