RuneHive-Game
Loading...
Searching...
No Matches
FishingSpot.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 FishingSpot {
14
15 private int id;
18 private static Map<Integer, FishingSpot> fishingSpots = new HashMap<>();
19
20 public static void declare() {
21 for (FishingSpot spots : values())
22 fishingSpots.put(spots.getId(), spots);
23 }
24
25 public static FishingSpot forId(int id) {
26 return fishingSpots.get(id);
27 }
28
30 this.id = id;
31 this.firstOption = firstOption;
32 this.secondOption = secondOption;
33 }
34
35 public int getId() {
36 return id;
37 }
38
40 return firstOption;
41 }
42
44 return secondOption;
45 }
46}
static Map< Integer, FishingSpot > fishingSpots
FishingSpot(int id, Fishable[] firstOption, Fishable[] secondOption)