summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/mobs
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-11 07:46:01 +0100
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-02-11 07:46:01 +0100
commit1f64f15f8cd4a53b5d970248972a138c5db95655 (patch)
treefec54890953fbec619c1d9a137617bcf2c683686 /src/main/java/at/hannibal2/skyhanni/features/mobs
parentd542bad4e83d86bca7a307f7c32f16864789c30c (diff)
downloadskyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.tar.gz
skyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.tar.bz2
skyhanni-1f64f15f8cd4a53b5d970248972a138c5db95655.zip
Added Kuudra Key Number overlay. Added colored highlight support for zealots, bruisers and special zealots.
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mobs')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt
index 8d5d84940..8c58c70a3 100644
--- a/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt
+++ b/src/main/java/at/hannibal2/skyhanni/features/mobs/MobHighlight.kt
@@ -9,6 +9,7 @@ import at.hannibal2.skyhanni.utils.LorenzColor
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import net.minecraft.client.entity.EntityOtherPlayerMP
+import net.minecraft.entity.monster.EntityEnderman
import net.minecraft.entity.monster.EntitySpider
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
@@ -50,5 +51,21 @@ class MobHighlight {
RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.corleoneHighlighter }
}
}
+
+ if (SkyHanniMod.feature.mobs.zealotBruiserHighlighter) {
+ if ((maxHealth == 65_000 || maxHealth == 13_000) && entity is EntityEnderman) {
+ RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_AQUA.toColor().withAlpha(127))
+ { SkyHanniMod.feature.mobs.zealotBruiserHighlighter }
+ RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.zealotBruiserHighlighter }
+ }
+ }
+
+ if (SkyHanniMod.feature.mobs.specialZealotHighlighter) {
+ if (maxHealth == 2_000 && entity is EntityEnderman) {
+ RenderLivingEntityHelper.setEntityColor(entity, LorenzColor.DARK_RED.toColor().withAlpha(50))
+ { SkyHanniMod.feature.mobs.specialZealotHighlighter }
+ RenderLivingEntityHelper.setNoHurtTime(entity) { SkyHanniMod.feature.mobs.specialZealotHighlighter }
+ }
+ }
}
} \ No newline at end of file