Interface Drawer2D


public interface Drawer2D
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    quad(double x, double y, double width, double height, DrawColor color)
    Draw a quad
    void
    quad(double x, double y, double width, double height, DrawColor topLeft, DrawColor topRight, DrawColor bottomRight, DrawColor bottomLeft)
    Draw a quad
    void
    Start drawing
    default void
    Stop drawing
    void
    stopDrawing(net.minecraft.client.gui.DrawContext context)
    Stop drawing
  • Method Details

    • startDrawing

      void startDrawing()
      Start drawing
    • stopDrawing

      void stopDrawing(net.minecraft.client.gui.DrawContext context)
      Stop drawing
      Parameters:
      context - DrawContext to use for rendering, can be null
    • stopDrawing

      default void stopDrawing()
      Stop drawing
    • quad

      void quad(double x, double y, double width, double height, 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 x, double y, double width, double height, DrawColor color)
      Draw a quad
      Parameters:
      color - color