aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/utils
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-05-08 00:55:25 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-05-08 00:55:25 +0800
commita5c90bb7d4748ba2da024ce468ffeeda99bf4a0f (patch)
tree4bcc51bdcee2dbc521d2bf74f0f913ec04485f67 /src/main/java/me/shedaniel/rei/utils
parent5357ec90f80768b69b197161e877e3ef884650a4 (diff)
downloadRoughlyEnoughItems-a5c90bb7d4748ba2da024ce468ffeeda99bf4a0f.tar.gz
RoughlyEnoughItems-a5c90bb7d4748ba2da024ce468ffeeda99bf4a0f.tar.bz2
RoughlyEnoughItems-a5c90bb7d4748ba2da024ce468ffeeda99bf4a0f.zip
start of 2.9 update beta
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils')
-rw-r--r--src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
index 45feb4fc9..0bc54ba87 100644
--- a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
+++ b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
@@ -8,6 +8,7 @@ import me.shedaniel.cloth.gui.entries.StringListEntry;
import me.shedaniel.cloth.hooks.ScreenHooks;
import me.shedaniel.rei.RoughlyEnoughItemsCore;
import me.shedaniel.rei.api.ItemCheatingMode;
+import me.shedaniel.rei.client.RecipeScreenType;
import me.shedaniel.rei.gui.config.ItemListOrderingConfig;
import me.shedaniel.rei.gui.credits.CreditsScreen;
import net.minecraft.client.MinecraftClient;
@@ -47,6 +48,7 @@ public class ClothScreenRegistry {
}
});
ConfigScreenBuilder.CategoryBuilder appearance = builder.addCategory("text.rei.config.appearance");
+ appearance.addOption(new EnumListEntry<>("text.rei.config.recipe_screen_type", RecipeScreenType.class, RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType, RESET, () -> RecipeScreenType.UNSET, bool -> RoughlyEnoughItemsCore.getConfigManager().getConfig().screenType = bool, EnumListEntry.DEFAULT_NAME_PROVIDER, () -> getConfigTooltip("recipe_screen_type")));
appearance.addOption(new BooleanListEntry("text.rei.config.side_search_box", RoughlyEnoughItemsCore.getConfigManager().getConfig().sideSearchField, RESET, () -> false, bool -> RoughlyEnoughItemsCore.getConfigManager().getConfig().sideSearchField = bool, () -> getConfigTooltip("side_search_box")));
appearance.addOption(new EnumListEntry<>("text.rei.config.list_ordering", ItemListOrderingConfig.class, ItemListOrderingConfig.from(RoughlyEnoughItemsCore.getConfigManager().getConfig().itemListOrdering, RoughlyEnoughItemsCore.getConfigManager().getConfig().isAscending), RESET, () -> ItemListOrderingConfig.REGISTRY_ASCENDING, config -> {
RoughlyEnoughItemsCore.getConfigManager().getConfig().itemListOrdering = config.getOrdering();