aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-18 19:19:14 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-18 19:19:14 +0800
commit866a775b643b1d729ccaf79e5e1772d481046246 (patch)
tree0babf3420f349a93a2bc4ebbdc09fa7c44bfc748 /src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
parentd02fc1b8dbccefb88c50e4a8780fb8212960041b (diff)
downloadRoughlyEnoughItems-866a775b643b1d729ccaf79e5e1772d481046246.tar.gz
RoughlyEnoughItems-866a775b643b1d729ccaf79e5e1772d481046246.tar.bz2
RoughlyEnoughItems-866a775b643b1d729ccaf79e5e1772d481046246.zip
Close #140
Diffstat (limited to 'src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java')
-rw-r--r--src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
index 9f3b11e68..5fc06cdd5 100644
--- a/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
+++ b/src/main/java/me/shedaniel/rei/impl/ConfigObjectImpl.java
@@ -6,10 +6,7 @@
package me.shedaniel.rei.impl;
import me.shedaniel.rei.api.ConfigObject;
-import me.shedaniel.rei.gui.config.ItemCheatingMode;
-import me.shedaniel.rei.gui.config.ItemListOrdering;
-import me.shedaniel.rei.gui.config.ItemListOrderingConfig;
-import me.shedaniel.rei.gui.config.RecipeScreenType;
+import me.shedaniel.rei.gui.config.*;
import me.zeroeightsix.fiber.exception.FiberException;
import me.zeroeightsix.fiber.tree.ConfigNode;
import me.zeroeightsix.fiber.tree.ConfigValue;
@@ -59,11 +56,11 @@ public class ConfigObjectImpl implements ConfigObject {
.withName("loadDefaultPlugin")
.build();
- private ConfigValue<Boolean> sideSearchField = ConfigValue.builder(Boolean.class)
+ private ConfigValue<SearchFieldLocation> sideSearchField = ConfigValue.builder(SearchFieldLocation.class)
.withParent(appearance)
- .withDefaultValue(false)
+ .withDefaultValue(SearchFieldLocation.CENTER)
.withComment("Declares the position of the search field.")
- .withName("sideSearchField")
+ .withName("searchFieldLocation")
.build();
private ConfigValue<Boolean> mirrorItemPanel = ConfigValue.builder(Boolean.class)
@@ -238,8 +235,8 @@ public class ConfigObjectImpl implements ConfigObject {
}
@Override
- public boolean isSideSearchField() {
- return sideSearchField.getValue().booleanValue();
+ public SearchFieldLocation getSearchFieldLocation() {
+ return sideSearchField.getValue();
}
@Override