aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt
diff options
context:
space:
mode:
authorLorenz <lo.scherf@gmail.com>2022-08-14 11:08:35 +0200
committerLorenz <lo.scherf@gmail.com>2022-08-14 11:08:35 +0200
commit2b786f4997136509da9efda4e12af57b579fe62b (patch)
tree8db4269d624e405494a4997ebf1d00586995c52b /src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt
parent8cfb6d1de8b0dbee96d73f56720596541dafb304 (diff)
downloadskyhanni-2b786f4997136509da9efda4e12af57b579fe62b.tar.gz
skyhanni-2b786f4997136509da9efda4e12af57b579fe62b.tar.bz2
skyhanni-2b786f4997136509da9efda4e12af57b579fe62b.zip
adding summon soul display
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt b/src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt
index c8126e05d..164e22755 100644
--- a/src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt
+++ b/src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt
@@ -2,6 +2,8 @@ package at.hannibal2.skyhanni.test
import at.hannibal2.skyhanni.config.gui.utils.Utils
import at.hannibal2.skyhanni.utils.ItemUtils.cleanName
+import at.hannibal2.skyhanni.utils.ItemUtils.getSkullTexture
+import at.hannibal2.skyhanni.utils.LocationUtils
import at.hannibal2.skyhanni.utils.LorenzUtils
import at.hannibal2.skyhanni.utils.LorenzUtils.baseMaxHealth
import at.hannibal2.skyhanni.utils.toLorenzVec
@@ -21,7 +23,7 @@ class CopyNearbyEntitiesCommand {
}
val minecraft = Minecraft.getMinecraft()
- val start = minecraft.thePlayer.position.toLorenzVec()
+ val start = LocationUtils.playerLocation()
val world = minecraft.theWorld
val resultList = mutableListOf<String>()
@@ -61,6 +63,10 @@ class CopyNearbyEntitiesCommand {
for ((id, stack) in entity.inventory.withIndex()) {
resultList.add("id $id = $stack")
if (stack != null) {
+ val skullTexture = stack.getSkullTexture()
+ if (skullTexture != null) {
+ resultList.add("skullTexture: $skullTexture")
+ }
val cleanName = stack.cleanName()
val type = stack.javaClass.name
resultList.add("cleanName: $cleanName")