Class DebugRenderer

java.lang.Object
net.minecraft.client.render.debug.DebugRenderer

@Environment(CLIENT)
public class DebugRenderer
extends Object
  • Field Details

  • Constructor Details

  • Method Details

    • reset

      public void reset()
    • toggleShowChunkBorder

      public boolean toggleShowChunkBorder()
    • render

      public void render​(MatrixStack matrices, VertexConsumerProvider.Immediate vertexConsumers, double cameraX, double cameraY, double cameraZ)
    • getTargetedEntity

      public static Optional<Entity> getTargetedEntity​(@Nullable Entity entity, int maxDistance)
    • drawBox

      public static void drawBox​(BlockPos pos1, BlockPos pos2, float red, float green, float blue, float alpha)
    • drawBox

      public static void drawBox​(BlockPos pos, float expand, float red, float green, float blue, float alpha)
    • drawBox

      public static void drawBox​(Box box, float red, float green, float blue, float alpha)
    • drawBox

      public static void drawBox​(double minX, double minY, double minZ, double maxX, double maxY, double maxZ, float red, float green, float blue, float alpha)
    • drawString

      public static void drawString​(String string, int x, int y, int z, int color)
    • drawString

      public static void drawString​(String string, double x, double y, double z, int color)
    • drawString

      public static void drawString​(String string, double x, double y, double z, int color, float size)
    • drawString

      public static void drawString​(String string, double x, double y, double z, int color, float size, boolean center, float offset, boolean visibleThroughObjects)