Interface Drawer3D


public interface Drawer3D
3D Drawer interface (for 3D rendering)
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    box(net.minecraft.util.math.Box box, DrawColor color)
    Draw a box
    default void
    line(double x1, double y1, double z1, double x2, double y2, double z2, DrawColor color)
    Draw a line
    void
    line(double x1, double y1, double z1, double x2, double y2, double z2, DrawColor color1, DrawColor color2)
    Draw a line
    void
    outlinedBox(net.minecraft.util.math.Box box, DrawColor quadColor, DrawColor lineColor)
    Draw an outlined box
    default void
    quad(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4, DrawColor color)
    Draw a quad
    void
    quad(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4, DrawColor topLeft, DrawColor topRight, DrawColor bottomRight, DrawColor bottomLeft)
    Draw a quad
    void
    Start drawing
    default void
    Stop drawing
    void
    stopDrawing(net.minecraft.client.util.math.MatrixStack matrices)
    Stop drawing
  • Method Details

    • startDrawing

      void startDrawing()
      Start drawing
    • stopDrawing

      void stopDrawing(net.minecraft.client.util.math.MatrixStack matrices)
      Stop drawing
      Parameters:
      matrices - MatrixStack to use for rendering, can be null
    • stopDrawing

      default void stopDrawing()
      Stop drawing

      If you wish to render in the world, do not use this; instead, use the other stopDrawing method with matrices from EventWorldRender
    • line

      void line(double x1, double y1, double z1, double x2, double y2, double z2, DrawColor color1, DrawColor color2)
      Draw a line
      Parameters:
      x1 - Origin x
      y1 - Origin y
      z1 - Origin z
      x2 - Destination x
      y2 - Destination y
      z2 - Destination z
      color1 - Origin color
      color2 - Destination color
    • line

      default void line(double x1, double y1, double z1, double x2, double y2, double z2, DrawColor color)
      Draw a line
      Parameters:
      x1 - Origin x
      y1 - Origin y
      z1 - Origin z
      x2 - Destination x
      y2 - Destination y
      z2 - Destination z
      color - Color (for both origin and destination)
    • quad

      void quad(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4, DrawColor topLeft, DrawColor topRight, DrawColor bottomRight, DrawColor bottomLeft)
      Draw a quad
      Parameters:
      topLeft - Top left color
      topRight - Top right color
      bottomRight - Bottom right color
      bottomLeft - Bottom left color
    • quad

      default void quad(double x1, double y1, double z1, double x2, double y2, double z2, double x3, double y3, double z3, double x4, double y4, double z4, DrawColor color)
      Draw a quad
      Parameters:
      color - Color (for all corners)
    • box

      void box(net.minecraft.util.math.Box box, DrawColor color)
      Draw a box
      Parameters:
      box - Box to draw
      color - Color of the box
    • outlinedBox

      void outlinedBox(net.minecraft.util.math.Box box, DrawColor quadColor, DrawColor lineColor)
      Draw an outlined box
      Parameters:
      box - Box to draw
      quadColor - Color of the box's quads (sides)
      lineColor - Color of the box's lines