diff options
| author | Danielshe <shekwancheung0528@gmail.com> | 2019-08-23 03:44:09 +0800 |
|---|---|---|
| committer | Danielshe <shekwancheung0528@gmail.com> | 2019-08-23 03:44:09 +0800 |
| commit | c980df4f05485ef2a1adb768087bb95eeeadcfca (patch) | |
| tree | 28b0f249613851a8287238deaadd4a18957b2275 /src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java | |
| parent | 268480b6431037e310108bbd14a8d600c5ab13d4 (diff) | |
| download | RoughlyEnoughItems-c980df4f05485ef2a1adb768087bb95eeeadcfca.tar.gz RoughlyEnoughItems-c980df4f05485ef2a1adb768087bb95eeeadcfca.tar.bz2 RoughlyEnoughItems-c980df4f05485ef2a1adb768087bb95eeeadcfca.zip | |
Build 3
- Fix water color
- Fix dark theme slot hover color
- Fix villager recipe screen click area
Diffstat (limited to 'src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/utils/ClothScreenRegistry.java | 11 |
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(); } } |
