Package dev.boze.api.internal.interfaces
Interface IHudRender
public interface IHudRender
Internal HUD rendering interface
Provides low-level HUD rendering functionality
-
Method Summary
Modifier and TypeMethodDescriptionvoiddraw()Renders the current drawing sessionvoidline(ClientColor color, float opacity, double x1, double y1, double x2, double y2) Renders a linevoidquad(ClientColor color, float opacity, double x, double y, double width, double height) Renders a quad/filled rectanglevoidstart()Starts a new drawing session
-
Method Details
-
start
void start()Starts a new drawing session Must be called before any drawing operations. Throws RuntimeException if already started -
draw
void draw()Renders the current drawing session Throws RuntimeException if start() was not called first -
line
Renders a line Throws RuntimeException if start() was not called first- Parameters:
color- The color to useopacity- The opacity valuex1- Starting X coordinatey1- Starting Y coordinatex2- Ending X coordinatey2- Ending Y coordinate
-
quad
Renders a quad/filled rectangle Throws RuntimeException if start() was not called first- Parameters:
color- The color to useopacity- The opacity valuex- X coordinatey- Y coordinatewidth- Width of the quadheight- Height of the quad
-