aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-07-03 04:36:10 -0500
committeringlettronald <inglettronald@gmail.com>2023-07-03 04:36:10 -0500
commitec276d4a14735d3c69f7bb62f3389705c8b07e15 (patch)
treecb5bb038a42970106d45a291d1660f6d910c4e73 /src/main/kotlin/com/dulkirfabric/features
parentb47a1f596e85358a834f0dc105010be79cd5b2c2 (diff)
downloadDulkirMod-Fabric-ec276d4a14735d3c69f7bb62f3389705c8b07e15.tar.gz
DulkirMod-Fabric-ec276d4a14735d3c69f7bb62f3389705c8b07e15.tar.bz2
DulkirMod-Fabric-ec276d4a14735d3c69f7bb62f3389705c8b07e15.zip
Basic Functionality for text in world
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt b/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt
index ab52f81..ea05247 100644
--- a/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/RenderBoxTest.kt
@@ -3,7 +3,9 @@ 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 {
@@ -15,5 +17,10 @@ object RenderBoxTest {
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