aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-06 17:57:48 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-06 17:57:48 +0200
commite392d06ae56f75dd43f01ecbc2fa479c84fd578f (patch)
tree0a442f341d57b4e8574dcbe58766e8fc8203f27c
parentdf9178e5697b0fbe1996741a77b86834c58a06ed (diff)
downloadskyhanni-e392d06ae56f75dd43f01ecbc2fa479c84fd578f.tar.gz
skyhanni-e392d06ae56f75dd43f01ecbc2fa479c84fd578f.tar.bz2
skyhanni-e392d06ae56f75dd43f01ecbc2fa479c84fd578f.zip
more debug methods for nearby entities
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
index a13170828..7dabaad98 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/LorenzTest.kt
@@ -7,7 +7,9 @@ import at.hannibal2.skyhanni.utils.GuiRender.renderString
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
import at.hannibal2.skyhanni.utils.ItemUtils.getInternalName
import at.hannibal2.skyhanni.utils.ItemUtils.getLore
+import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import net.minecraft.client.Minecraft
+import net.minecraft.entity.EntityLivingBase
import net.minecraft.entity.item.EntityArmorStand
import net.minecraft.nbt.NBTTagCompound
import net.minecraftforge.client.event.RenderGameOverlayEvent
@@ -150,8 +152,16 @@ class LorenzTest {
}
}
+ } else {
+ if (entity is EntityLivingBase) {
+ val baseMaxHealth = entity.baseMaxHealth
+ val health = entity.health.toInt()
+ LorenzDebug.log("baseMaxHealth: $baseMaxHealth")
+ LorenzDebug.log("health: $health")
+ }
}
LorenzDebug.log("")
+ LorenzDebug.log("")
}
}
}