From a81bc67e90df2fddb8e2b8ad5ac6e13cf7c81032 Mon Sep 17 00:00:00 2001 From: Wyvest <45589059+Wyvest@users.noreply.github.com> Date: Sat, 2 Jul 2022 07:38:22 +0700 Subject: pass a UMatrixStack in HUD API From 1.17+, most matrix transformations can only be done with a MatrixStack instance, thus to prepare for a OneConfig 1.17+ port this has been done. --- .../java/cc/polyfrost/oneconfig/events/event/HudRenderEvent.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/main/java/cc/polyfrost/oneconfig/events/event') diff --git a/src/main/java/cc/polyfrost/oneconfig/events/event/HudRenderEvent.java b/src/main/java/cc/polyfrost/oneconfig/events/event/HudRenderEvent.java index 465a2f6..41011aa 100644 --- a/src/main/java/cc/polyfrost/oneconfig/events/event/HudRenderEvent.java +++ b/src/main/java/cc/polyfrost/oneconfig/events/event/HudRenderEvent.java @@ -1,5 +1,7 @@ package cc.polyfrost.oneconfig.events.event; +import cc.polyfrost.oneconfig.libs.universal.UMatrixStack; + /** * Called when external HUDs can be rendered. */ @@ -8,8 +10,10 @@ public class HudRenderEvent { * How much time has elapsed since the last tick, in ticks. Used for animations. */ public final float deltaTicks; + public final UMatrixStack matrices; - public HudRenderEvent(float deltaTicks) { + public HudRenderEvent(UMatrixStack matrices, float deltaTicks) { + this.matrices = matrices; this.deltaTicks = deltaTicks; } } -- cgit