diff options
author | syeyoung <cyong06@naver.com> | 2020-12-27 01:06:11 +0900 |
---|---|---|
committer | syeyoung <cyong06@naver.com> | 2020-12-27 01:06:11 +0900 |
commit | 0ab8c554c9fa40aa7830aa1ff614673562bb21a4 (patch) | |
tree | 756d7ce99b11e98ba42799d291ef50db1cf49a0d /src/main/java/kr/syeyoung/dungeonsguide/features | |
parent | 4407ee1bf2d6dfc8946c27b23b20063028de8ce2 (diff) | |
download | Skyblock-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')
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); } } |