RuneHive-Game
Loading...
Searching...
No Matches
FishingTool.java
Go to the documentation of this file.
1package com.runehive.content.skill.impl.fishing;
2
3import java.util.HashMap;
4import java.util.Map;
5
6public enum FishingTool {
7 SMALL_NET(303, 621, new short[]{317, 3150, 321, 5004, 7994}),
8 BIG_NET(305, 621, new short[]{353, 341, 363}),
9 CRAYFISH_CAGE(13431, 619, new short[]{13435}),
10 FISHING_ROD(307, 622, new short[]{327, 345, 349, 3379, 5001, 2148}),
11 FLYFISHING_ROD(309, 622, new short[]{335, 331}),
12 KARAMBWAN_POT(3157, -1, new short[]{3142}),
13 HARPOON(311, 618, new short[]{359, 371}),
14 DRAGON_HARPOON(21028, 618, new short[]{359, 371}),
15 DRAGON_HARPOON2(21029, 618, new short[]{359, 371}),
16 LOBSTER_POT(301, 619, new short[]{377});
17
18 private int toolId;
19 private int animation;
20 private short[] outcomes;
21
22 private static Map<Integer, FishingTool> tools = new HashMap<>();
23
24 public static void declare() {
25 for (FishingTool tool : values())
26 tools.put(tool.getToolId(), tool);
27 }
28
29 FishingTool(int toolId, int animation, short[] outcomes) {
30 this.toolId = toolId;
31 this.outcomes = outcomes;
32 this.animation = animation;
33 }
34
35 public int getAnimationId() {
36 return animation;
37 }
38
39 public short[] getOutcomes() {
40 return outcomes;
41 }
42
43 public int getToolId() {
44 return toolId;
45 }
46
47 public static FishingTool forId(int id) {
48 return tools.get(id);
49 }
50
51}
static Map< Integer, FishingTool > tools
FishingTool(int toolId, int animation, short[] outcomes)