RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
FishingTool.java
1package com.osroyale.content.skill.impl.fishing;
2
3import java.util.HashMap;
4import java.util.Map;
5
20
21public enum FishingTool {
22 SMALL_NET(303, 621, new short[]{317, 3150, 321, 5004, 7994}),
23 BIG_NET(305, 621, new short[]{353, 341, 363}),
24 CRAYFISH_CAGE(13431, 619, new short[]{13435}),
25 FISHING_ROD(307, 622, new short[]{327, 345, 349, 3379, 5001, 2148}),
26 FLYFISHING_ROD(309, 622, new short[]{335, 331}),
27 KARAMBWAN_POT(3157, -1, new short[]{3142}),
28 HARPOON(311, 618, new short[]{359, 371}),
29 DRAGON_HARPOON(21028, 618, new short[]{359, 371}),
30 DRAGON_HARPOON2(21029, 618, new short[]{359, 371}),
31 LOBSTER_POT(301, 619, new short[]{377});
32
33 private int toolId;
34 private int animation;
35 private short[] outcomes;
36
37 private static Map<Integer, FishingTool> tools = new HashMap<>();
38
39 public static void declare() {
40 for (FishingTool tool : values())
41 tools.put(tool.getToolId(), tool);
42 }
43
44 FishingTool(int toolId, int animation, short[] outcomes) {
45 this.toolId = toolId;
46 this.outcomes = outcomes;
47 this.animation = animation;
48 }
49
50 public int getAnimationId() {
51 return animation;
52 }
53
54 public short[] getOutcomes() {
55 return outcomes;
56 }
57
58 public int getToolId() {
59 return toolId;
60 }
61
62 public static FishingTool forId(int id) {
63 return tools.get(id);
64 }
65
66}