Package dev.boze.api.render
Interface Drawer3D
public interface Drawer3D
3D Drawer interface (for 3D rendering)
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Draw a boxdefault void
Draw a linevoid
line
(double x1, double y1, double z1, double x2, double y2, double z2, DrawColor color1, DrawColor color2) Draw a linevoid
outlinedBox
(net.minecraft.util.math.Box box, DrawColor quadColor, DrawColor lineColor) Draw an outlined boxdefault 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 quadvoid
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 quadvoid
Start drawingdefault void
Stop drawingvoid
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 xy1
- Origin yz1
- Origin zx2
- Destination xy2
- Destination yz2
- Destination zcolor1
- Origin colorcolor2
- 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 xy1
- Origin yz1
- Origin zx2
- Destination xy2
- Destination yz2
- Destination zcolor
- 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 colortopRight
- Top right colorbottomRight
- Bottom right colorbottomLeft
- 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
Draw a box- Parameters:
box
- Box to drawcolor
- Color of the box
-
outlinedBox
Draw an outlined box- Parameters:
box
- Box to drawquadColor
- Color of the box's quads (sides)lineColor
- Color of the box's lines
-