diff options
| author | shedaniel <daniel@shedaniel.me> | 2020-01-02 14:31:16 +0800 |
|---|---|---|
| committer | shedaniel <daniel@shedaniel.me> | 2020-01-02 14:31:16 +0800 |
| commit | 5e2eccadbd91171c01cdb209d1338bcfb7786b1c (patch) | |
| tree | 6c7387de5baea8b335e8abe58651018f77ad2d41 /src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java | |
| parent | e8714fe8fc1dcaec7ad299c63e2b657870c8fb40 (diff) | |
| download | RoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.tar.gz RoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.tar.bz2 RoughlyEnoughItems-5e2eccadbd91171c01cdb209d1338bcfb7786b1c.zip | |
3.3
Fix #58
Close #134
Close #158
Fix #227
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java')
| -rw-r--r-- | src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java index 8159966fc..21ca07b14 100644 --- a/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/brewing/DefaultBrewingDisplay.java @@ -20,10 +20,10 @@ import java.util.Collections; import java.util.List; public class DefaultBrewingDisplay implements RecipeDisplay { - + private EntryStack input, output; private List<EntryStack> reactant; - + public DefaultBrewingDisplay(ItemStack input, Ingredient reactant, ItemStack output) { this.input = EntryStack.create(input).setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, stack -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.brewing.input"))); this.reactant = new ArrayList<>(); @@ -34,22 +34,22 @@ public class DefaultBrewingDisplay implements RecipeDisplay { } this.output = EntryStack.create(output).setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, stack -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.brewing.result"))); } - + @Override public List<List<EntryStack>> getInputEntries() { return Lists.newArrayList(Collections.singletonList(input), reactant); } - + @Override public List<EntryStack> getOutputEntries() { return Collections.singletonList(output); } - + @Override public Identifier getRecipeCategory() { return DefaultPlugin.BREWING; } - + public List<EntryStack> getOutput(int slot) { List<EntryStack> stack = new ArrayList<>(); for (int i = 0; i < slot * 2; i++) @@ -58,7 +58,7 @@ public class DefaultBrewingDisplay implements RecipeDisplay { stack.addAll(getOutputEntries()); return stack; } - + @Override public List<List<EntryStack>> getRequiredEntries() { return getInputEntries(); |
