RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
CollectionLogPage.java
1package com.osroyale.content.collectionlog;
2
3import java.util.HashMap;
4
27
28public enum CollectionLogPage {
29
30 BOSSES(-21030, CollectionCategory.BOSSES),
31 RAIDS(-21028, CollectionCategory.RAIDS),
32 CLUES(-21026, CollectionCategory.CLUES),
33 MINIGAMES(-21024, CollectionCategory.MINIGAMES),
34 OTHER(-21022, CollectionCategory.OTHER);
35
36 private final int button;
37 private final CollectionCategory category;
38
39 private CollectionLogPage(int button, CollectionCategory category) {
40 this.button = button;
41 this.category = category;
42 }
43
44 private static HashMap<Integer, CollectionLogPage> pages;
45
46 public static CollectionLogPage forButton(int button) {
47 return pages.get(button);
48 }
49
50 static {
51 pages = new HashMap<>();
52 for (CollectionLogPage page : values()) {
53 pages.put(page.getButton(), page);
54 }
55 }
56
57
58 public int getButton() {
59 return this.button;
60 }
61
62 public CollectionCategory getCategory() {
63 return this.category;
64 }
65
66}