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});
34 private int animation;
35 private short[] outcomes;
37 private static Map<Integer, FishingTool> tools =
new HashMap<>();
39 public static void declare() {
40 for (FishingTool tool : values())
41 tools.put(tool.getToolId(), tool);
44 FishingTool(
int toolId,
int animation,
short[] outcomes) {
46 this.outcomes = outcomes;
47 this.animation = animation;
50 public int getAnimationId() {
54 public short[] getOutcomes() {
58 public int getToolId() {
62 public static FishingTool forId(
int id) {