aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/utils
diff options
context:
space:
mode:
authorhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 19:12:48 +0200
committerhannibal2 <24389977+hannibal00212@users.noreply.github.com>2022-10-01 19:12:48 +0200
commit7f68a52e3dcd71edbca363e01618a694839efa4e (patch)
treedcb326b8698073ae8cbd6b1b4d6a15e407a23208 /src/main/java/at/hannibal2/skyhanni/utils
parent6294c1e84663a92964326105c4e25bc970a29394 (diff)
downloadskyhanni-7f68a52e3dcd71edbca363e01618a694839efa4e.tar.gz
skyhanni-7f68a52e3dcd71edbca363e01618a694839efa4e.tar.bz2
skyhanni-7f68a52e3dcd71edbca363e01618a694839efa4e.zip
fixed blaze slayer pillar hider
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
index ad96a9510..c91865dce 100644
--- a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
+++ b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt
@@ -1,5 +1,6 @@
package at.hannibal2.skyhanni.utils
+import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import net.minecraft.client.multiplayer.WorldClient
import net.minecraft.entity.EntityLiving
@@ -111,4 +112,9 @@ object EntityUtils {
): MutableList<EntityBlaze> = getEntities(clazz) { entity ->
entity?.getLorenzVec()?.let { it.distance(location) < radius } ?: false
}
+
+ fun EntityArmorStand.hasSkullTexture(skin: String): Boolean {
+ if (inventory == null) return false
+ return inventory.any { it != null && it.getSkullTexture() == skin }
+ }
} \ No newline at end of file