diff options
author | nea <nea@nea.moe> | 2023-07-23 17:39:47 +0200 |
---|---|---|
committer | nea <nea@nea.moe> | 2023-07-23 17:40:26 +0200 |
commit | b8d53d66085c827853325d399e16b85ca4758520 (patch) | |
tree | c421c09cc7dc43abe16835812ee5be9701489dbe /src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | |
parent | 3150e50bc3d75b8809f52a5aa46923ad2ddf8db4 (diff) | |
download | DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.gz DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.tar.bz2 DulkirMod-Fabric-b8d53d66085c827853325d399e16b85ca4758520.zip |
Use string map for positionspositionbranch
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/RenderTest.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt index e139ad0..3442f8a 100644 --- a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt +++ b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt @@ -7,6 +7,7 @@ import com.dulkirfabric.events.HudRenderEvent import com.dulkirfabric.events.WorldRenderLastEvent import com.dulkirfabric.util.render.WorldRenderUtils import meteordevelopment.orbit.EventHandler +import moe.nea.jarvis.api.Point import net.minecraft.text.Style import net.minecraft.text.Text import net.minecraft.util.math.Vec3d @@ -34,12 +35,14 @@ object RenderTest { //event.entity.setDulkirEntityGlow(true, Color(0, 0, 255, 255),false) } + val fooHud = DulkirConfig.hudElement("foobar", Text.literal("Text"), 200, 10, Point(0.4, 0.4)) + @EventHandler fun onRenderHud(event: HudRenderEvent) { val context = event.context val matrices = context.matrices matrices.push() - DulkirConfig.fooHudElement.applyTransformations(matrices) + fooHud.applyTransformations(matrices) context.drawText(mc.textRenderer, Text.literal("ยง6This is the actual element."),0, 0, -1, true) matrices.pop() } |