RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
FishingSpot.java
1package com.osroyale.content.skill.impl.fishing;
2
3import java.util.HashMap;
4import java.util.Map;
5
20
21public enum FishingSpot {
22 SMALL_NET_OR_BAIT(1518, new Fishable[]{Fishable.SHRIMP, Fishable.ANCHOVIES}, new Fishable[]{Fishable.SARDINE, Fishable.HERRING, Fishable.PIKE}),
23 LURE_OR_BAIT(1526, new Fishable[]{Fishable.TROUT, Fishable.SALMON}, new Fishable[]{Fishable.SARDINE, Fishable.HERRING, Fishable.PIKE}),
24 CAGE_OR_HARPOON(1519, new Fishable[]{Fishable.LOBSTER}, new Fishable[]{Fishable.TUNA, Fishable.SWORD_FISH}),
25 LARGE_NET_OR_HARPOON(1520, new Fishable[]{Fishable.MACKEREL, Fishable.COD, Fishable.BASS}, new Fishable[]{Fishable.SHARK}),
26 HARPOON_OR_SMALL_NET(1534, new Fishable[]{Fishable.MONK_FISH}, new Fishable[]{Fishable.MONK_FISH}),
27 MANTA_RAY(1521, new Fishable[]{Fishable.MANTA_RAY}, new Fishable[]{Fishable.MANTA_RAY}),
28 DARK_CRAB(1536, new Fishable[]{Fishable.DARK_CRAB}, new Fishable[]{Fishable.DARK_CRAB});
29
30 private int id;
31 private Fishable[] firstOption;
32 private Fishable[] secondOption;
33 private static Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
34
35 public static void declare() {
36 for (FishingSpot spots : values())
37 fishingSpots.put(spots.getId(), spots);
38 }
39
40 public static FishingSpot forId(int id) {
41 return fishingSpots.get(id);
42 }
43
44 FishingSpot(int id, Fishable[] firstOption, Fishable[] secondOption) {
45 this.id = id;
46 this.firstOption = firstOption;
47 this.secondOption = secondOption;
48 }
49
50 public int getId() {
51 return id;
52 }
53
54 public Fishable[] getFirstOption() {
55 return firstOption;
56 }
57
58 public Fishable[] getSecondOption() {
59 return secondOption;
60 }
61}