Class LightSectionDebugRenderer

java.lang.Object
net.minecraft.client.renderer.debug.LightSectionDebugRenderer
All Implemented Interfaces:
DebugRenderer.SimpleDebugRenderer

public class LightSectionDebugRenderer extends Object implements DebugRenderer.SimpleDebugRenderer
  • Field Details

    • REFRESH_INTERVAL

      private static final Duration REFRESH_INTERVAL
    • RADIUS

      private static final int RADIUS
      See Also:
    • LIGHT_AND_BLOCKS_COLOR

      private static final org.joml.Vector4f LIGHT_AND_BLOCKS_COLOR
    • LIGHT_ONLY_COLOR

      private static final org.joml.Vector4f LIGHT_ONLY_COLOR
    • minecraft

      private final Minecraft minecraft
    • lightLayer

      private final LightLayer lightLayer
    • lastUpdateTime

      private Instant lastUpdateTime
    • data

      @Nullable private LightSectionDebugRenderer.SectionData data
  • Constructor Details

    • LightSectionDebugRenderer

      public LightSectionDebugRenderer(Minecraft p_283340_, LightLayer p_283096_)
  • Method Details

    • render

      public void render(PoseStack p_281418_, MultiBufferSource p_282487_, double p_282164_, double p_282565_, double p_281615_)
      Specified by:
      render in interface DebugRenderer.SimpleDebugRenderer
    • renderFaces

      private static void renderFaces(PoseStack p_283088_, DiscreteVoxelShape p_281747_, SectionPos p_282941_, VertexConsumer p_283103_, double p_281419_, double p_282520_, double p_281976_, org.joml.Vector4f p_282342_)
    • renderEdges

      private static void renderEdges(PoseStack p_282890_, DiscreteVoxelShape p_282950_, SectionPos p_281925_, MultiBufferSource p_281516_, double p_281554_, double p_283233_, double p_281690_, org.joml.Vector4f p_282916_)
    • renderFace

      private static void renderFace(PoseStack p_283612_, VertexConsumer p_281996_, Direction p_282340_, double p_281988_, double p_282440_, double p_282235_, int p_282751_, int p_282270_, int p_282159_, org.joml.Vector4f p_283316_)
    • renderEdge

      private static void renderEdge(PoseStack p_283045_, VertexConsumer p_282888_, double p_283424_, double p_283677_, double p_283390_, int p_281439_, int p_282106_, int p_282462_, int p_282216_, int p_281474_, int p_281542_, org.joml.Vector4f p_283667_)