Package dev.boze.api.event
Class EventHudRender
java.lang.Object
dev.boze.api.event.EventHudRender
Event called when the HUD is being rendered
Used for 2D rendering
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic EventHudRender
get
(net.minecraft.client.gui.DrawContext context, Drawer2D drawer, DrawerText text, float tickDelta) Gets the event instance - this is called when the HUD is being rendered by Boze, and should not be called by addons
-
Field Details
-
context
public net.minecraft.client.gui.DrawContext contextThe current draw context -
drawer
The drawer for 2d rendering -
text
The drawer for text rendering -
tickDelta
public float tickDeltaThe current tick delta
-
-
Constructor Details
-
EventHudRender
public EventHudRender()
-
-
Method Details
-
get
public static EventHudRender get(net.minecraft.client.gui.DrawContext context, Drawer2D drawer, DrawerText text, float tickDelta) Gets the event instance - this is called when the HUD is being rendered by Boze, and should not be called by addons- Parameters:
context
- The current draw contextdrawer
- The drawer for 2d renderingtext
- The drawer for text renderingtickDelta
- The current tick delta- Returns:
- The event instance
-