Package dev.boze.api.render
Interface Drawer2D
public interface Drawer2D
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
Draw a quadvoid
quad
(double x, double y, double width, double height, DrawColor topLeft, DrawColor topRight, DrawColor bottomRight, DrawColor bottomLeft) Draw a quadvoid
Start drawingdefault void
Stop drawingvoid
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 colortopRight
- top right colorbottomRight
- bottom right colorbottomLeft
- bottom left color
-
quad
Draw a quad- Parameters:
color
- color
-