aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-08-04 22:11:07 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-08-04 22:11:07 +0800
commit721ea24a226c2dca5cfef4b3f638d251547df0b8 (patch)
tree76c9d8c2790db8730c95af2d250a4b062df1215a /src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
parent82225991887f55047d161a18e6fa19f798c0ba67 (diff)
downloadRoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.gz
RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.tar.bz2
RoughlyEnoughItems-721ea24a226c2dca5cfef4b3f638d251547df0b8.zip
yes thank you
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
index 3453b0480..f14dd0714 100644
--- a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
+++ b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
@@ -26,9 +26,9 @@ import java.util.Locale;
import java.util.Optional;
public class ClothScreenRegistry {
-
+
public static final String RESET = "text.cloth-config.reset_value";
-
+
@SuppressWarnings("deprecation")
public static Screen getConfigScreen(Screen parent) {
final ConfigManager configManager = RoughlyEnoughItemsCore.getConfigManager();
@@ -105,7 +105,7 @@ public class ClothScreenRegistry {
.setSaveConsumer(bool -> configManager.getConfig().villagerScreenPermanentScrollBar = bool)
.setTooltip(getConfigTooltip("villager_screen_permanent_scroll_bar"))
.build());
-
+
ConfigCategory action = builder.getOrCreateCategory("text.rei.config.action");
action.addEntry(eb.startEnumSelector("text.rei.config.item_cheating_mode", ItemCheatingMode.class, configManager.getConfig().itemCheatingMode)
.setDefaultValue(ItemCheatingMode.REI_LIKE)
@@ -150,11 +150,11 @@ public class ClothScreenRegistry {
((ScreenHooks) screen).cloth_getChildren().add(0, w);
}).build();
}
-
+
private static Optional<String[]> getConfigTooltip(String s, Object... o) {
if (I18n.hasTranslation("tooltip.rei.config." + s))
return Optional.ofNullable(I18n.translate("tooltip.rei.config." + s, o).split("\n"));
return Optional.empty();
}
-
+
}