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
41
42
43
44
45
46
47
48
49
50
51
52
53
|
package com.thatgravyboat.skyblockhud.location;
public class EndIslandHandler {
public enum dragonTypes {
PROTECTOR("Protector Dragon", 9000000),
OLD("Old Dragon", 15000000),
WISE("Wise Dragon", 9000000),
UNSTABLE("Unstable Dragon", 9000000),
YOUNG("Young Dragon", 7500000),
STRONG("Strong Dragon", 9000000),
SUPERIOR("Superior Dragon", 12000000),
NODRAGON("", 0);
private final String displayName;
private final int maxHealth;
dragonTypes(String displayName, int maxHealth) {
this.displayName = displayName;
this.maxHealth = maxHealth;
}
public String getDisplayName() {
return this.displayName;
}
public int getMaxHealth() {
return this.maxHealth;
}
public static dragonTypes findDragon(String input) {
if (input.contains(" ")) {
try {
return dragonTypes.valueOf(input.toLowerCase().replace("dragon", "").replace(" ", "").toUpperCase());
} catch (IllegalArgumentException ignored) {
return NODRAGON;
}
} else {
try {
return dragonTypes.valueOf(input);
} catch (IllegalArgumentException ignored) {
return NODRAGON;
}
}
}
}
private static dragonTypes currentDragon = dragonTypes.NODRAGON;
public static void setCurrentDragon(dragonTypes dragon) {
currentDragon = dragon;
}
}
|