aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin/com/dulkirfabric/features
diff options
context:
space:
mode:
authorronald <inglettronald@gmail.com>2023-07-26 18:52:23 -0500
committerronald <inglettronald@gmail.com>2023-07-26 18:52:23 -0500
commit45180d569a87740ed8da9535b8b362192e891988 (patch)
tree19795c7efa4cef23b941372fa7d3ba6a0b895fbb /src/main/kotlin/com/dulkirfabric/features
parent829203c44dc2361e78764a59673f3f41fd306e33 (diff)
downloadDulkirMod-Fabric-45180d569a87740ed8da9535b8b362192e891988.tar.gz
DulkirMod-Fabric-45180d569a87740ed8da9535b8b362192e891988.tar.bz2
DulkirMod-Fabric-45180d569a87740ed8da9535b8b362192e891988.zip
wip
Diffstat (limited to 'src/main/kotlin/com/dulkirfabric/features')
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/CustomBlockOutline.kt2
-rw-r--r--src/main/kotlin/com/dulkirfabric/features/RenderTest.kt22
2 files changed, 2 insertions, 22 deletions
diff --git a/src/main/kotlin/com/dulkirfabric/features/CustomBlockOutline.kt b/src/main/kotlin/com/dulkirfabric/features/CustomBlockOutline.kt
index 3aa3121..b64fe6b 100644
--- a/src/main/kotlin/com/dulkirfabric/features/CustomBlockOutline.kt
+++ b/src/main/kotlin/com/dulkirfabric/features/CustomBlockOutline.kt
@@ -23,7 +23,7 @@ object CustomBlockOutline {
val z = blockPos.z.toDouble()
val color = ColorUtil.toRGB(DulkirConfig.configOptions.blockOutlineColor)
- WorldRenderUtils.drawBox(
+ WorldRenderUtils.drawWireFrame(
event.worldRenderContext, Box(x, y, z, x + 1, y + 1, z + 1),
color, 3f * DulkirConfig.configOptions.blockOutlineThickness, true
)
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