Terraria.ModLoader.ItemLoader.DrawBody C# (CSharp) Method

DrawBody() public static method

public static DrawBody ( Player player ) : bool
player Terraria.Player
return bool
        public static bool DrawBody(Player player)
        {
            EquipTexture texture = EquipLoader.GetEquipTexture(EquipType.Body, player.body);
            if (texture != null && !texture.DrawBody())
            {
                return false;
            }
            foreach (var hook in HookDrawBody)
            {
                if (!hook(player.head))
                {
                    return false;
                }
            }
            return true;
        }