blob: 1dc72d12bfb32045b625a7add4abe82d8f05cce1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
package de.hype.bbsentials.constants.enviromentShared;
import de.hype.bbsentials.constants.BBDisplayNameProvider;
// Mining Events
public enum MiningEvents implements BBDisplayNameProvider {
BETTER_TOGETHER("Better Together"),
DOUBLE_POWDER("Double Powder"),
GONE_WITH_THE_WIND("Gone with the Wind"),
GOBLIN_RAID("Goblin Raid"),
MITHRIL_GOURMAND("Mithril Gourmand"),
RAFFLE("Raffle");
private final String displayName;
MiningEvents(String displayName) {
this.displayName = displayName;
}
@Override
public String getDisplayName() {
return displayName;
}
//Some Events cant happen in Crystal Holows
public boolean isDWEventOnly() {
if (this.equals(MiningEvents.MITHRIL_GOURMAND) || this.equals(MiningEvents.RAFFLE) || this.equals(MiningEvents.GOBLIN_RAID)) {
return true;
}
return false;
}
public static boolean isDWEventOnly(String event) {
if (event.equals(MiningEvents.MITHRIL_GOURMAND.getDisplayName()) || event.equals(MiningEvents.RAFFLE.getDisplayName()) || event.equals(MiningEvents.GOBLIN_RAID.getDisplayName())) {
return true;
}
return false;
}
}
|