blob: 3e6a3467ef98d81f64f6b04602928c5f14e8cf3b (
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
41
42
43
44
45
46
|
package de.hype.bbsentials.constants.enviromentShared;
public class ChChestItem {
private String displayName;
private boolean custom;
public ChChestItem(String displayName) {
this.displayName = displayName;
this.custom = false;
}
public ChChestItem(String displayName, boolean custom) {
this.displayName = displayName;
this.custom = custom;
}
public String getDisplayName() {
return displayName;
}
public ChChestItem setDisplayName(String displayName) {
this.displayName = displayName;
return this;
}
public boolean isCustom() {
return custom;
}
@Override
public String toString() {
return displayName;
}
public boolean isGemstone() {
return displayName.startsWith("Flawless") && displayName.endsWith("Gemstone");
}
public boolean isRoboPart() {
String[] roboParts = {"Control Switch", "Electron Transmitter", "FTX 3070", "Robotron Reflector", "Superlite Motor", "Synthetic Heart"};
for (String roboPart : roboParts) {
if (displayName.equals(roboPart)) return true;
}
return false;
}
}
|