aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
diff options
context:
space:
mode:
authorDanielshe <shekwancheung0528@gmail.com>2019-10-24 23:21:57 +0800
committerDanielshe <shekwancheung0528@gmail.com>2019-10-24 23:21:57 +0800
commitf955ea0ba0891c28967552d07aae6a7b9389673c (patch)
treeb9e8c22575f2b2a9ca585b5a02944fbffc443454 /src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
parent1c116ba2387262a852554d1a89427ce6fbcbc452 (diff)
downloadRoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.tar.gz
RoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.tar.bz2
RoughlyEnoughItems-f955ea0ba0891c28967552d07aae6a7b9389673c.zip
Close #176
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
index 12521e09e..9c56f5b95 100644
--- a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
+++ b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
@@ -84,6 +84,12 @@ public class ConfigObjectImpl implements ConfigObject {
.withName("enableCraftableOnlyButton")
.build();
+ private ConfigValue<Boolean> toastDisplayedOnCopyIdentifier = ConfigValue.builder(Boolean.class)
+ .withParent(modules)
+ .withDefaultValue(true)
+ .withName("toastDisplayedOnCopyIdentifier")
+ .build();
+
private ConfigValue<String> gamemodeCommand = ConfigValue.builder(String.class)
.withParent(technical)
.withDefaultValue("/gamemode {gamemode}")
@@ -229,6 +235,11 @@ public class ConfigObjectImpl implements ConfigObject {
}
@Override
+ public boolean isToastDisplayedOnCopyIdentifier() {
+ return toastDisplayedOnCopyIdentifier.getValue();
+ }
+
+ @Override
public boolean doesRenderEntryExtraOverlay() {
return renderEntryExtraOverlay.getValue().booleanValue();
}