21public enum FishingSpot {
33 private static Map<Integer, FishingSpot> fishingSpots =
new HashMap<>();
35 public static void declare() {
36 for (FishingSpot spots : values())
37 fishingSpots.put(spots.getId(), spots);
40 public static FishingSpot forId(
int id) {
41 return fishingSpots.get(
id);
46 this.firstOption = firstOption;
47 this.secondOption = secondOption;
58 public Fishable[] getSecondOption() {