diff options
| author | Danielshe <shekwancheung0528@gmail.com> | 2019-10-24 23:21:57 +0800 |
|---|---|---|
| committer | Danielshe <shekwancheung0528@gmail.com> | 2019-10-24 23:21:57 +0800 |
| commit | f955ea0ba0891c28967552d07aae6a7b9389673c (patch) | |
| tree | b9e8c22575f2b2a9ca585b5a02944fbffc443454 /src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java | |
| parent | 1c116ba2387262a852554d1a89427ce6fbcbc452 (diff) | |
| download | RoughlyEnoughItems-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.java | 11 |
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(); } |
