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

IsAnglerQuestAvailable() public static method

public static IsAnglerQuestAvailable ( int itemID, bool &notAvailable ) : void
itemID int
notAvailable bool
return void
        public static void IsAnglerQuestAvailable(int itemID, ref bool notAvailable)
        {
            ModItem modItem = GetItem(itemID);
            if (modItem != null)
            {
                notAvailable &= !modItem.IsAnglerQuestAvailable();
            }
            foreach (var hook in HookIsAnglerQuestAvailable)
            {
                notAvailable &= !hook(itemID);
            }
        }