diff options
author | inglettronald <inglettronald@gmail.com> | 2023-07-23 10:24:53 -0500 |
---|---|---|
committer | inglettronald <inglettronald@gmail.com> | 2023-07-23 10:24:53 -0500 |
commit | b76ffd5ce3e181d23988fc3bd41c30edd84457a9 (patch) | |
tree | 03def20314120f6b1eac46251e66f1a55ef2b04a /src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | |
parent | c2f12fc024ed726b9b4479decfcb90ddefc6f52a (diff) | |
download | DulkirMod-Fabric-b76ffd5ce3e181d23988fc3bd41c30edd84457a9.tar.gz DulkirMod-Fabric-b76ffd5ce3e181d23988fc3bd41c30edd84457a9.tar.bz2 DulkirMod-Fabric-b76ffd5ce3e181d23988fc3bd41c30edd84457a9.zip |
wip
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/RenderTest.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 13 |
1 files changed, 13 insertions, 0 deletions
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 |