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

DrawHead() public static method

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