1package com.runehive.content.skill.impl.fishing;
3import com.runehive.content.event.impl.NpcInteractionEvent;
4import com.runehive.content.skill.SkillRepository;
5import com.runehive.game.world.entity.mob.npc.Npc;
6import com.runehive.game.world.entity.mob.player.Player;
7import com.runehive.game.world.entity.skill.Skill;
8import com.runehive.game.world.items.Item;
9import com.runehive.game.world.items.ItemDefinition;
10import com.runehive.util.Utility;
52 boolean hasDragonHarpoon;
89 int opcode =
event.getOpcode();
106 for (
int i = 0; i < fish.length; i++) {
107 if (
canFish(player, fish[i], i == 0)) {
108 fishable[i] = fish[i];
115 for (
int i = 0; i < fish.length; i++) {
116 if (
canFish(player, fish[i], i == 0)) {
117 fishable[i] = fish[i];
127 System.arraycopy(fishable, 0,
fishing, 0, amount);
static boolean isSuccess(int skill, int levelRequired)
Created by Daniel on 2017-12-18.
static boolean success(Player player, Fishable fish)
static double getBonus(Player player)
static boolean canFish(Player player, Fishable fish, boolean message)
Fishing(int level, double experience)
void start(Player player, Fishable[] fishing, int option)
static boolean hasFishingItems(Player player, Fishable fish, boolean message)
boolean clickNpc(Player player, NpcInteractionEvent event)
public< A extends Action<?> > void execute(A action)
final SkillManager skills
Represents a non-player character in the in-game world.
This class represents a character controlled by a player.
final Inventory inventory
void message(String message)
final Equipment equipment
double experience
The current skill experience.
int getLevel()
Gets the current skill level.
int level
The current level of the skill.
void setDoingSkill(boolean doingSkill)
Skill(int skill, int level, double experience)
Constructs a new Skill.
Skill get(int id)
Gets the skill for an id.
Represents all of an in-game Item's attributes.
static ItemDefinition get(int id)
Gets an item definition.
String getName()
Gets the item name.
The container class that represents an item that can be interacted with.
final int getId(int index)
Gets the item id located on index.
boolean contains(int id)
Determines if this container contains id.
final boolean containsAll(int... identifiers)
Determines if this container contains all identifiers.
boolean contains(int[] bowsWithNoArrowsRequired)
Handles miscellaneous methods.
static String getAOrAn(String nextWord)
A or an.
Fishable[] getFirstOption()
static FishingSpot forId(int id)
Fishable[] getSecondOption()
static FishingTool forId(int id)