Terraria.ModLoader.PlayerHooks.CatchFish C# (CSharp) Method

CatchFish() public static method

public static CatchFish ( Player player, System.Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, int &caughtType, bool &junk ) : void
player Player
fishingRod System.Item
power int
liquidType int
poolSize int
worldLayer int
questFish int
caughtType int
junk bool
return void
        public static void CatchFish(Player player, Item fishingRod, int power, int liquidType, int poolSize, int worldLayer, int questFish, ref int caughtType, ref bool junk)
        {
            int i = 0;
            while (i < 58)
            {
                if (player.inventory[i].stack > 0 && player.inventory[i].bait > 0)
                {
                    break;
                }
                i++;
            }
            foreach (ModPlayer modPlayer in player.modPlayers)
            {
                modPlayer.CatchFish(fishingRod, player.inventory[i], power, liquidType, poolSize, worldLayer, questFish, ref caughtType, ref junk);
            }
        }