RuneHive-Game
Loading...
Searching...
No Matches
CollectionLogPage.java
Go to the documentation of this file.
1package com.runehive.content.collectionlog;
2
3import java.util.HashMap;
4
5public enum CollectionLogPage {
6
12
13 private final int button;
15
17 this.button = button;
18 this.category = category;
19 }
20
21 private static HashMap<Integer, CollectionLogPage> pages;
22
23 public static CollectionLogPage forButton(int button) {
24 return pages.get(button);
25 }
26
27 static {
28 pages = new HashMap<>();
29 for (CollectionLogPage page : values()) {
30 pages.put(page.getButton(), page);
31 }
32 }
33
34
35 public int getButton() {
36 return this.button;
37 }
38
40 return this.category;
41 }
42
43}
CollectionLogPage(int button, CollectionCategory category)
static HashMap< Integer, CollectionLogPage > pages