aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java')
-rw-r--r--src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java11
1 files changed, 6 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 df4cb4c0c..a759a62e1 100644
--- a/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
+++ b/src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java
@@ -34,7 +34,7 @@ public class ClothScreenRegistry {
} catch (IOException | FiberException e) {
e.printStackTrace();
}
- }).registerConfigEntryFunction(ItemListOrderingConfig.class, o -> {
+ }).registerNodeEntryFunction(ItemListOrderingConfig.class, o -> {
ConfigValue<ItemListOrderingConfig> configValue = (ConfigValue<ItemListOrderingConfig>) o;
return configEntryBuilder.startEnumSelector("config.roughlyenoughitems." + configValue.getName(), ItemListOrderingConfig.class, configValue.getValue())
.setDefaultValue(configValue.getDefaultValue())
@@ -42,7 +42,7 @@ public class ClothScreenRegistry {
.setSaveConsumer(var -> configValue.setValue((ItemListOrderingConfig) var))
.setErrorSupplier(var -> error((List) configValue.getConstraints(), var, ItemListOrderingConfig.class))
.build();
- }).registerConfigEntryFunction(RecipeScreenType.class, o -> {
+ }).registerNodeEntryFunction(RecipeScreenType.class, o -> {
ConfigValue<RecipeScreenType> configValue = (ConfigValue<RecipeScreenType>) o;
return configEntryBuilder.startEnumSelector("config.roughlyenoughitems." + configValue.getName(), RecipeScreenType.class, configValue.getValue())
.setDefaultValue(configValue.getDefaultValue())
@@ -50,7 +50,7 @@ public class ClothScreenRegistry {
.setSaveConsumer(var -> configValue.setValue((RecipeScreenType) var))
.setErrorSupplier(var -> error((List) configValue.getConstraints(), var, RecipeScreenType.class))
.build();
- }).registerConfigEntryFunction(ItemCheatingMode.class, o -> {
+ }).registerNodeEntryFunction(ItemCheatingMode.class, o -> {
ConfigValue<ItemCheatingMode> configValue = (ConfigValue<ItemCheatingMode>) o;
return configEntryBuilder.startEnumSelector("config.roughlyenoughitems." + configValue.getName(), ItemCheatingMode.class, configValue.getValue())
.setDefaultValue(configValue.getDefaultValue())
@@ -58,7 +58,7 @@ public class ClothScreenRegistry {
.setSaveConsumer(var -> configValue.setValue((ItemCheatingMode) var))
.setErrorSupplier(var -> error((List) configValue.getConstraints(), var, ItemCheatingMode.class))
.build();
- }).registerConfigEntryFunction(SearchFieldLocation.class, o -> {
+ }).registerNodeEntryFunction(SearchFieldLocation.class, o -> {
ConfigValue<SearchFieldLocation> configValue = (ConfigValue<SearchFieldLocation>) o;
return configEntryBuilder.startEnumSelector("config.roughlyenoughitems." + configValue.getName(), SearchFieldLocation.class, configValue.getValue())
.setDefaultValue(configValue.getDefaultValue())
@@ -66,7 +66,8 @@ public class ClothScreenRegistry {
.setSaveConsumer(var -> configValue.setValue((SearchFieldLocation) var))
.setErrorSupplier(var -> error((List) configValue.getConstraints(), var, SearchFieldLocation.class))
.build();
- }).build().getScreen();
+ })
+ .build().getScreen();
}
}