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 int LIGHT_AND_BLOCKS_COLOR
    • LIGHT_ONLY_COLOR

      private static final int LIGHT_ONLY_COLOR
    • minecraft

      private final Minecraft minecraft
    • lightLayer

      private final LightLayer lightLayer
    • lastUpdateTime

      private Instant lastUpdateTime
    • data

      private @Nullable LightSectionDebugRenderer.SectionData data
  • Constructor Details

    • LightSectionDebugRenderer

      public LightSectionDebugRenderer(Minecraft pMinecraft, LightLayer pLightLayer)
  • Method Details

    • emitGizmos

      public void emitGizmos(double p_454694_, double p_455000_, double p_456110_, DebugValueAccess p_455821_, Frustum p_454892_, float p_455573_)
      Specified by:
      emitGizmos in interface DebugRenderer.SimpleDebugRenderer
    • renderFaces

      private static void renderFaces(DiscreteVoxelShape pShape, SectionPos pPos, int pColor)
    • renderEdges

      private static void renderEdges(DiscreteVoxelShape pShape, SectionPos pPos, int pColor)
    • renderFace

      private static void renderFace(Direction pDirection, int pX, int pY, int pZ, int pColor)
    • renderEdge

      private static void renderEdge(int pX1, int pY1, int pZ1, int pX2, int pY2, int pZ2, int pColor)