From b76ffd5ce3e181d23988fc3bd41c30edd84457a9 Mon Sep 17 00:00:00 2001 From: inglettronald Date: Sun, 23 Jul 2023 10:24:53 -0500 Subject: wip --- src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/main/kotlin/com/dulkirfabric/features') diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt index 3cc489d..e139ad0 100644 --- a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt +++ b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt @@ -1,6 +1,9 @@ package com.dulkirfabric.features +import com.dulkirfabric.DulkirModFabric.mc +import com.dulkirfabric.config.DulkirConfig import com.dulkirfabric.events.EntityLoadEvent +import com.dulkirfabric.events.HudRenderEvent import com.dulkirfabric.events.WorldRenderLastEvent import com.dulkirfabric.util.render.WorldRenderUtils import meteordevelopment.orbit.EventHandler @@ -30,4 +33,14 @@ object RenderTest { //if (event.entity !is GlowingEntityInterface) return //event.entity.setDulkirEntityGlow(true, Color(0, 0, 255, 255),false) } + + @EventHandler + fun onRenderHud(event: HudRenderEvent) { + val context = event.context + val matrices = context.matrices + matrices.push() + DulkirConfig.fooHudElement.applyTransformations(matrices) + context.drawText(mc.textRenderer, Text.literal("ยง6This is the actual element."),0, 0, -1, true) + matrices.pop() + } } \ No newline at end of file -- cgit