diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni')
-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 |