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 minecraft, LightLayer lightLayer)
  • Method Details

    • emitGizmos

      public void emitGizmos(double camX, double camY, double camZ, DebugValueAccess debugValues, Frustum frustum, float partialTicks)
      Specified by:
      emitGizmos in interface DebugRenderer.SimpleDebugRenderer
    • renderFaces

      private static void renderFaces(DiscreteVoxelShape shape, SectionPos minSection, int color)
    • renderEdges

      private static void renderEdges(DiscreteVoxelShape shape, SectionPos minSection, int color)
    • renderFace

      private static void renderFace(Direction direction, int sectionX, int sectionY, int sectionZ, int color)
    • renderEdge

      private static void renderEdge(int sectionX0, int sectionY0, int sectionZ0, int sectionX1, int sectionY1, int sectionZ1, int color)