diff options
author | Empa <42304516+ItsEmpa@users.noreply.github.com> | 2024-09-03 09:59:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-03 09:59:27 +0200 |
commit | 2b92f20b8a080be611447635b6f27a7651d49ca0 (patch) | |
tree | 0c33aad5dc2e4ab7cb7a6b258c07ec6b48848e99 /src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | |
parent | c6fd094ab8023588fd9369fe8e959b223d2ec312 (diff) | |
download | skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.tar.gz skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.tar.bz2 skyhanni-2b92f20b8a080be611447635b6f27a7651d49ca0.zip |
Fix: Armor Hider in Custom Wardrobe (#2449)
Co-authored-by: ItsEmpa <itsempa@users.noreply.github.com>
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt')
-rw-r--r-- | src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt index c3d3d248f..5e85bb64f 100644 --- a/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt +++ b/src/main/java/at/hannibal2/skyhanni/utils/EntityUtils.kt @@ -20,16 +20,13 @@ import net.minecraft.block.state.IBlockState import net.minecraft.client.Minecraft import net.minecraft.client.entity.EntityOtherPlayerMP import net.minecraft.client.multiplayer.WorldClient -import net.minecraft.client.resources.DefaultPlayerSkin import net.minecraft.entity.Entity import net.minecraft.entity.EntityLivingBase import net.minecraft.entity.item.EntityArmorStand import net.minecraft.entity.monster.EntityEnderman import net.minecraft.entity.player.EntityPlayer -import net.minecraft.entity.player.EnumPlayerModelParts import net.minecraft.item.ItemStack import net.minecraft.potion.Potion -import net.minecraft.scoreboard.ScorePlayerTeam import net.minecraft.util.AxisAlignedBB import net.minecraftforge.client.event.RenderLivingEvent @@ -248,28 +245,6 @@ object EntityUtils { fun EntityLivingBase.isRunicAndCorrupt() = baseMaxHealth == health.toInt().derpy() * 3 * 4 fun Entity.cleanName() = this.getNameAsString().removeColor() - - /** - * @return a fake player with the same skin as the real player - */ - fun getFakePlayer(): EntityOtherPlayerMP { - val mc = Minecraft.getMinecraft() - val player = mc.thePlayer!! - return object : EntityOtherPlayerMP( - mc.theWorld, - player.gameProfile, - ) { - override fun getLocationSkin() = - player.getLocationSkin() ?: DefaultPlayerSkin.getDefaultSkin(player.uniqueID) - - override fun getTeam() = object : ScorePlayerTeam(null, null) { - override fun getNameTagVisibility() = EnumVisible.NEVER - } - - override fun isWearing(part: EnumPlayerModelParts): Boolean = - player.isWearing(part) && part != EnumPlayerModelParts.CAPE - } - } } //#if FORGE |