aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/features
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2020-12-27 01:06:11 +0900
committersyeyoung <cyong06@naver.com>2020-12-27 01:06:11 +0900
commit0ab8c554c9fa40aa7830aa1ff614673562bb21a4 (patch)
tree756d7ce99b11e98ba42799d291ef50db1cf49a0d /src/main/java/kr/syeyoung/dungeonsguide/features
parent4407ee1bf2d6dfc8946c27b23b20063028de8ce2 (diff)
downloadSkyblock-Dungeons-Guide-0ab8c554c9fa40aa7830aa1ff614673562bb21a4.tar.gz
Skyblock-Dungeons-Guide-0ab8c554c9fa40aa7830aa1ff614673562bb21a4.tar.bz2
Skyblock-Dungeons-Guide-0ab8c554c9fa40aa7830aa1ff614673562bb21a4.zip
configurations
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/features')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/AbstractFeature.java2
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java5
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/SimpleFeature.java7
3 files changed, 11 insertions, 3 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/AbstractFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/AbstractFeature.java
index 4964ee5f..cec8492c 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/AbstractFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/AbstractFeature.java
@@ -32,7 +32,7 @@ public abstract class AbstractFeature {
@Getter
@Setter
- private boolean enabled = false;
+ private boolean enabled = true;
public void drawWorld(float partialTicks) {}
public void drawScreen(float partialTicks) {}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
index 67d1e971..c92e09a1 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
@@ -44,6 +44,9 @@ public class FeatureRegistry {
public static final AbstractFeature TOOLTIP_DUNGEONSTAT = register(new SimpleFeature("tooltip", "Dungeon Item Stats", "Shows quality of dungeon items (floor, percentage)", "tooltip.dungeonitem"));
public static final AbstractFeature TOOLTIP_PRICE = register(new SimpleFeature("tooltip", "Item Price", "Shows price of items", "tooltip.price"));
- public static final AbstractFeature DEBUG = register(new SimpleFeature("advanced", "Debug", "Toggles debug mode", "debug"));
+ public static final AbstractFeature ADVANCED_ROOMEDIT = register(new SimpleFeature("advanced", "Room Edit", "Allow editing dungeon rooms\n\nWarning: using this feature can break or freeze your Minecraft\nThis is only for advanced users only", "advanced.roomedit", false));
+
+
+ public static final AbstractFeature DEBUG = register(new SimpleFeature("hidden", "Debug", "Toggles debug mode", "debug", false));
}
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/SimpleFeature.java b/src/main/java/kr/syeyoung/dungeonsguide/features/SimpleFeature.java
index cdeaaa44..893addfe 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/SimpleFeature.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/SimpleFeature.java
@@ -2,9 +2,14 @@ package kr.syeyoung.dungeonsguide.features;
public class SimpleFeature extends AbstractFeature {
protected SimpleFeature(String category, String name, String key) {
- super(category, name, name, key);
+ this(category, name, name, key);
}
protected SimpleFeature(String category, String name, String description, String key) {
+ this(category, name, description, key, true);
+ }
+
+ protected SimpleFeature(String category, String name, String description, String key, boolean enabled) {
super(category, name, description, key);
+ this.setEnabled(enabled);
}
}