diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features/RenderTest.kt')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt index 3442f8a..5eda0f9 100644 --- a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt +++ b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt @@ -1,13 +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 -import moe.nea.jarvis.api.Point import net.minecraft.text.Style import net.minecraft.text.Text import net.minecraft.util.math.Vec3d @@ -22,11 +18,7 @@ object RenderTest { Vec3d(-183.5, 79.0, -465.5) ) -// mc.world?.entities?.forEach { -// if (it is GlowingEntityInterface) -// it.setDulkirEntityGlow(true, Color(255, 255, 255, 255), Random(it.id).nextBoolean()) -// } - //HudRenderUtil.drawTitle(event.context, Text.literal("Hello World!")) + WorldRenderUtils.drawBox(event.context, 0.0, 0.0, 0.0, 2.0, 2.0, 2.0, Color(0, 200, 200, 150), false) } @EventHandler @@ -34,16 +26,4 @@ object RenderTest { //if (event.entity !is GlowingEntityInterface) return //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() - fooHud.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 |