-
Notifications
You must be signed in to change notification settings - Fork 57
/
EnumArmorStat.java
79 lines (75 loc) · 1.2 KB
/
EnumArmorStat.java
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package techguns.items.armors;
public enum EnumArmorStat {
/**
* Movement speed bonus
*/
SPEED,
/**
* jump height bonus
*/
JUMP,
/**
* fall damage reduction
*/
FALL_DAMAGE,
/**
* free fall height
*/
FALL_HEIGHT,
/**
* mining speed bonus
*/
MINING_SPEED,
/**
* underwater mining speed bonus
*/
WATER_MINING_SPEED,
/**
* gun accuracy, less random spread
*/
GUN_ACCURACY,
/**
* extra hp points
*/
EXTRA_HEARTS,
/**
* When total >=1, player can use nightvision
*/
NIGHTVISION,
/**
* chance to not get knocked back
*/
KNOCKBACK_RESITANCE,
/**
* allow steping over 1block height
*/
STEP_ASSIST,
/**
* when total >=1, oxygen tanks work to give air
*/
OXYGEN_GEAR,
/**
* provide oxygen from power
*/
WATER_ELECTROLYZER,
/**
* extinguish player when burning with power cost
*/
COOLING_SYSTEM,
/**
* underwater speed
*/
WATER_SPEED,
/**
* rad resistance entity attribute
*/
RAD_RESISTANCE;
public static EnumArmorStat parseFromString(String s) {
for(EnumArmorStat e :EnumArmorStat.values()) {
if(e.name().equalsIgnoreCase(s)) {
return e;
}
}
return null;
}
}