RuneHive-Game
Loading...
Searching...
No Matches
CollectionLogPage.java
Go to the documentation of this file.
1
package
com.runehive.content.collectionlog;
2
3
import
java.util.HashMap;
4
5
public
enum
CollectionLogPage
{
6
7
BOSSES
(-21030,
CollectionCategory
.
BOSSES
),
8
RAIDS
(-21028,
CollectionCategory
.
RAIDS
),
9
CLUES
(-21026,
CollectionCategory
.
CLUES
),
10
MINIGAMES
(-21024,
CollectionCategory
.
MINIGAMES
),
11
OTHER
(-21022,
CollectionCategory
.
OTHER
);
12
13
private
final
int
button
;
14
private
final
CollectionCategory
category
;
15
16
private
CollectionLogPage
(
int
button
,
CollectionCategory
category
) {
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
39
public
CollectionCategory
getCategory
() {
40
return
this.category;
41
}
42
43
}
com.runehive.content.collectionlog.CollectionCategory
Definition
CollectionCategory.java:3
com.runehive.content.collectionlog.CollectionCategory.OTHER
OTHER
Definition
CollectionCategory.java:8
com.runehive.content.collectionlog.CollectionCategory.RAIDS
RAIDS
Definition
CollectionCategory.java:5
com.runehive.content.collectionlog.CollectionCategory.MINIGAMES
MINIGAMES
Definition
CollectionCategory.java:7
com.runehive.content.collectionlog.CollectionCategory.CLUES
CLUES
Definition
CollectionCategory.java:6
com.runehive.content.collectionlog.CollectionCategory.BOSSES
BOSSES
Definition
CollectionCategory.java:4
com.runehive.content.collectionlog.CollectionLogPage
Definition
CollectionLogPage.java:5
com.runehive.content.collectionlog.CollectionLogPage.CLUES
CLUES
Definition
CollectionLogPage.java:9
com.runehive.content.collectionlog.CollectionLogPage.CollectionLogPage
CollectionLogPage(int button, CollectionCategory category)
Definition
CollectionLogPage.java:16
com.runehive.content.collectionlog.CollectionLogPage.BOSSES
BOSSES
Definition
CollectionLogPage.java:7
com.runehive.content.collectionlog.CollectionLogPage.forButton
static CollectionLogPage forButton(int button)
Definition
CollectionLogPage.java:23
com.runehive.content.collectionlog.CollectionLogPage.category
final CollectionCategory category
Definition
CollectionLogPage.java:14
com.runehive.content.collectionlog.CollectionLogPage.getButton
int getButton()
Definition
CollectionLogPage.java:35
com.runehive.content.collectionlog.CollectionLogPage.MINIGAMES
MINIGAMES
Definition
CollectionLogPage.java:10
com.runehive.content.collectionlog.CollectionLogPage.pages
static HashMap< Integer, CollectionLogPage > pages
Definition
CollectionLogPage.java:21
com.runehive.content.collectionlog.CollectionLogPage.RAIDS
RAIDS
Definition
CollectionLogPage.java:8
com.runehive.content.collectionlog.CollectionLogPage.button
final int button
Definition
CollectionLogPage.java:13
com.runehive.content.collectionlog.CollectionLogPage.getCategory
CollectionCategory getCategory()
Definition
CollectionLogPage.java:39
com.runehive.content.collectionlog.CollectionLogPage.OTHER
OTHER
Definition
CollectionLogPage.java:11