diff options
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/test')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/test/CopyNearbyEntitiesCommand.kt | 8 |
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") |