summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/features/mobs
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 17:13:59 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2023-04-12 17:13:59 +0200
commita634de05add8e61aad17acd82d121e09afc92edc (patch)
treee98b15e3d269264dfbc4608916e2f8058b18cd74 /src/main/java/at/hannibal2/skyhanni/features/mobs
parent6a4663673cb244fb265bb08f96165d4929e72f0c (diff)
downloadskyhanni-a634de05add8e61aad17acd82d121e09afc92edc.tar.gz
skyhanni-a634de05add8e61aad17acd82d121e09afc92edc.tar.bz2
skyhanni-a634de05add8e61aad17acd82d121e09afc92edc.zip
Added Arachne to damage indicator
Added Arachne Minis Hider - Hides the nametag above arachne minis Added Arachne Boss Highlighter - Highlight the arachne boss in red and mini bosses and orange
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/features/mobs')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/features/mobs/AshfangMinisNametagHider.kt27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/features/mobs/AshfangMinisNametagHider.kt b/src/main/java/at/hannibal2/skyhanni/features/mobs/AshfangMinisNametagHider.kt
new file mode 100644
index 000000000..f3709b317
--- /dev/null
+++ b/src/main/java/at/hannibal2/skyhanni/features/mobs/AshfangMinisNametagHider.kt
@@ -0,0 +1,27 @@
+package at.hannibal2.skyhanni.features.mobs
+
+import at.hannibal2.skyhanni.SkyHanniMod
+import at.hannibal2.skyhanni.utils.LorenzUtils
+import net.minecraft.entity.EntityLivingBase
+import net.minecraft.entity.item.EntityArmorStand
+import net.minecraftforge.client.event.RenderLivingEvent
+import net.minecraftforge.fml.common.eventhandler.EventPriority
+import net.minecraftforge.fml.common.eventhandler.SubscribeEvent
+
+class AshfangMinisNametagHider {
+
+ @SubscribeEvent(priority = EventPriority.HIGH)
+ fun onRenderLiving(event: RenderLivingEvent.Specials.Pre<EntityLivingBase>) {
+ if (!LorenzUtils.inSkyBlock) return
+ if (!SkyHanniMod.feature.mobs.hideNameTagArachneMinis) return
+
+ val entity = event.entity
+ if (entity !is EntityArmorStand) return
+ if (!entity.hasCustomName()) return
+
+ val name = entity.name
+ if (name.contains("§cArachne's Brood§r")) {
+ event.isCanceled = true
+ }
+ }
+} \ No newline at end of file