diff options
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt | 26 | ||||
-rw-r--r-- | src/main/kotlin/com/dulkirfabric/features/RenderTest.kt | 22 |
2 files changed, 22 insertions, 26 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt deleted file mode 100644 index ea05247..0000000 --- a/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt +++ /dev/null @@ -1,26 +0,0 @@ -package com.dulkirfabric.features - -import com.dulkirfabric.events.WorldRenderLastEvent -import com.dulkirfabric.util.WorldRenderUtils -import meteordevelopment.orbit.EventHandler -import net.minecraft.text.Text -import net.minecraft.util.math.Box -import net.minecraft.util.math.Vec3d -import java.awt.Color - -object RenderBoxTest { - - @EventHandler - fun onRender(event: WorldRenderLastEvent) { - - WorldRenderUtils.drawBox( - event.context, Box(-183.0, 78.0, -465.0, -182.0, 79.0, -464.0), - Color(255, 100, 150, 255), 10f, false - ) - - WorldRenderUtils.renderTextWithDistance(Text.literal("Hello worldgpqy"), event.context, event.context.consumers()!!, - Vec3d(2.0, 0.0, 0.0), false, - depthTest = false - ) - } -}
\ No newline at end of file diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt new file mode 100644 index 0000000..7def54c --- /dev/null +++ b/src/main/kotlin/com/dulkirfabric/features/RenderTest.kt @@ -0,0 +1,22 @@ +package com.dulkirfabric.features + +import com.dulkirfabric.events.WorldRenderLastEvent +import com.dulkirfabric.util.WorldRenderUtils +import meteordevelopment.orbit.EventHandler +import net.minecraft.text.Style +import net.minecraft.text.Text +import net.minecraft.util.math.Vec3d +import java.awt.Color + +object RenderTest { + + @EventHandler + fun onRender(event: WorldRenderLastEvent) { + + WorldRenderUtils.renderWaypoint( + Text.literal("Home Base").setStyle(Style.EMPTY.withColor(Color(255, 100, 150, 255).rgb)), event.context, event.context.consumers()!!, + Vec3d(-183.5, 79.0, -465.5), false, + depthTest = false + ) + } +}
\ No newline at end of file |