aboutsummaryrefslogtreecommitdiff
path: root/src/main/kotlin
diff options
context:
space:
mode:
authoringlettronald <inglettronald@gmail.com>2023-05-31 14:43:44 -0500
committeringlettronald <inglettronald@gmail.com>2023-05-31 14:43:57 -0500
commit18ab8fb2f08e993216d168ff98a0068e39980fb8 (patch)
tree25ff954946003b4cb6ceb1d3f9659b9aad37a307 /src/main/kotlin
parent0a3acc81a05005696d0f6ba1e1bf2627195edea0 (diff)
downloadDulkirMod-18ab8fb2f08e993216d168ff98a0068e39980fb8.tar.gz
DulkirMod-18ab8fb2f08e993216d168ff98a0068e39980fb8.tar.bz2
DulkirMod-18ab8fb2f08e993216d168ff98a0068e39980fb8.zip
made a pull request in skytils for this
Diffstat (limited to 'src/main/kotlin')
-rw-r--r--src/main/kotlin/dulkirmod/features/StarredMobBoxes.kt69
1 files changed, 0 insertions, 69 deletions
diff --git a/src/main/kotlin/dulkirmod/features/StarredMobBoxes.kt b/src/main/kotlin/dulkirmod/features/StarredMobBoxes.kt
deleted file mode 100644
index a9aa932..0000000
--- a/src/main/kotlin/dulkirmod/features/StarredMobBoxes.kt
+++ /dev/null
@@ -1,69 +0,0 @@
-package dulkirmod.features
-
-import dulkirmod.config.DulkirConfig
-import dulkirmod.utils.TabListUtils
-import dulkirmod.utils.WorldRenderUtils
-import net.minecraftforge.client.event.RenderLivingEvent
-import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
-import java.awt.Color
-
-object StarredMobBoxes {
- @SubscribeEvent
- fun render(event: RenderLivingEvent.Post<*>) {
- if (!DulkirConfig.starredBoxes) return
- if (TabListUtils.area != "Dungeon") return
- val name = event.entity.name ?: return
- if (name.startsWith("§6✯ ") && name.endsWith("§c❤")) {
- val newPos = WorldRenderUtils.fixRenderPos(event.x, event.y, event.z)
- val x = newPos[0]
- val y = newPos[1]
- val z = newPos[2]
-
- if ("Spider" in name) {
-// x - 0.625,
-// y - 1,
-// z - 0.625,
-// x + 0.625,
-// y - 0.25,
-// z + 0.625
- WorldRenderUtils.drawCustomBox(
- x - .625,
- 1.25,
- y - 1,
- .75,
- z - .625,
- 1.25,
- Color(15, 247, 236, 255),
- 3f,
- phase = false
- )
- } else if ("Fels" in name || "Withermancer" in name) {
- //AxisAlignedBB(x - 0.5, y - 3, z - 0.5, x + 0.5, y, z + 0.5),
- WorldRenderUtils.drawCustomBox(
- x - .5,
- 1.0,
- y - 3,
- 3.0,
- z - .5,
- 1.0,
- Color(15, 247, 236, 255),
- 3f,
- phase = false
- )
- } else {
- //AxisAlignedBB(x - 0.5, y - 2, z - 0.5, x + 0.5, y, z + 0.5),
- WorldRenderUtils.drawCustomBox(
- x - .5,
- 1.0,
- y - 2,
- 2.0,
- z - .5,
- 1.0,
- Color(15, 247, 236, 255),
- 3f,
- phase = false
- )
- }
- }
- }
-} \ No newline at end of file