diff options
| author | Danielshe <shekwancheung0528@gmail.com> | 2019-09-07 14:17:46 +0800 |
|---|---|---|
| committer | Danielshe <shekwancheung0528@gmail.com> | 2019-09-07 14:17:46 +0800 |
| commit | 6e2791f101af396f2af3974a86e1e2062c7669e6 (patch) | |
| tree | 8f19a11f9e5db862746d8b149542952214e28b64 /src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | |
| parent | c57cbacf7712028ef225a3167593272c8b633dcb (diff) | |
| download | RoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.tar.gz RoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.tar.bz2 RoughlyEnoughItems-6e2791f101af396f2af3974a86e1e2062c7669e6.zip | |
Clean up & stack count function
Diffstat (limited to 'src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java index e09a64b8f..9f2b0cc91 100644 --- a/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java +++ b/src/main/java/me/shedaniel/rei/gui/VillagerRecipeViewingScreen.java @@ -108,12 +108,7 @@ public class VillagerRecipeViewingScreen extends Screen { int index = 0; List<String> list = Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("text.rei.working_station")); for (List<ItemStack> workingStation : workingStations) { - widgets.add(new SlotWidget(xx, yy, Renderer.fromItemStacks(workingStation), true, true, true) { - @Override - protected List<String> getExtraItemToolTips(ItemStack stack) { - return list; - } - }); + widgets.add(new SlotWidget(xx, yy, Renderer.fromItemStacks(() -> workingStation, true, stack -> list), true, true, true)); index++; xx += 18; if (index >= ww) { |
