aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java
diff options
context:
space:
mode:
authorHacktheTime <l4bg0jb7@duck.com>2023-10-12 20:17:28 +0200
committerHacktheTime <l4bg0jb7@duck.com>2023-10-12 20:17:28 +0200
commitdba4a297e295d68980da31264b0069fe9b18a13e (patch)
treec7e0a99968ef34509037f969ab7b1beba04a996d /src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java
parente111619d66346a2309b86a00420681f4cddf3cea (diff)
downloadBBsentials-dba4a297e295d68980da31264b0069fe9b18a13e.tar.gz
BBsentials-dba4a297e295d68980da31264b0069fe9b18a13e.tar.bz2
BBsentials-dba4a297e295d68980da31264b0069fe9b18a13e.zip
preperations to have a common code and different implementations for forge and fabric to ease up maintaining both versions
Diffstat (limited to 'src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java')
-rw-r--r--src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java b/src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java
deleted file mode 100644
index 3e6a346..0000000
--- a/src/main/java/de/hype/bbsentials/constants/enviromentShared/ChChestItem.java
+++ /dev/null
@@ -1,46 +0,0 @@
-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;
- }
-} \ No newline at end of file