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

AnglerChat() public static method

public static AnglerChat ( bool turningInFish, bool anglerQuestFinished, int type, string &chat, string &catchLocation ) : void
turningInFish bool
anglerQuestFinished bool
type int
chat string
catchLocation string
return void
        public static void AnglerChat(bool turningInFish, bool anglerQuestFinished, int type, ref string chat, ref string catchLocation)
        {
            ModItem modItem = GetItem(type);
            if (modItem != null && !Main.anglerQuestFinished && !turningInFish)
            {
                modItem.AnglerQuestChat(ref chat, ref catchLocation);
            }
            foreach (var hook in HookAnglerChat)
            {
                hook(turningInFish, anglerQuestFinished, type, ref chat, ref catchLocation);
            }
        }