diff options
author | Lorenz <lo.scherf@gmail.com> | 2022-08-10 11:52:34 +0200 |
---|---|---|
committer | Lorenz <lo.scherf@gmail.com> | 2022-08-10 11:52:34 +0200 |
commit | 8cfb6d1de8b0dbee96d73f56720596541dafb304 (patch) | |
tree | d5d2bcd857a56179d6ebe0e7c98aa69108c2254b /src/main/java | |
parent | 9133946f50159b35ca7747a56549c0930f8b43c3 (diff) | |
download | skyhanni-8cfb6d1de8b0dbee96d73f56720596541dafb304.tar.gz skyhanni-8cfb6d1de8b0dbee96d73f56720596541dafb304.tar.bz2 skyhanni-8cfb6d1de8b0dbee96d73f56720596541dafb304.zip |
add damage indicator for headless horseman
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt | 9 | ||||
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt | 3 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt index fab7890a1..80d480e00 100644 --- a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt +++ b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossFinder.kt @@ -16,6 +16,7 @@ import net.minecraft.entity.boss.EntityDragon import net.minecraft.entity.boss.EntityWither import net.minecraft.entity.item.EntityArmorStand import net.minecraft.entity.monster.* +import net.minecraft.entity.passive.EntityHorse import net.minecraft.util.AxisAlignedBB import java.util.* @@ -256,6 +257,14 @@ class BossFinder { } } } + + if (entity is EntityHorse) { + if (entity.baseMaxHealth == 3_000_000.0) { + if (entity.hasNameTagWith(15, "§8[§7Lv100§8] §c§6Headless Horseman§r ")) { + return EntityResult(bossType = BossType.HUB_HEADLESS_HORSEMAN) + } + } + } } return null diff --git a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt index 889b0d674..f912758d4 100644 --- a/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt +++ b/src/main/java/at/hannibal2/skyhanni/damageindicator/BossType.kt @@ -16,6 +16,7 @@ enum class BossType { END_ENDERMAN_SLAYER, END_ENDER_DRAGON, - HUB_REVENANT_HORROR + HUB_REVENANT_HORROR, + HUB_HEADLESS_HORSEMAN, }
\ No newline at end of file |