From 08d80d588a36598114087a79917e36e9d2cc97c3 Mon Sep 17 00:00:00 2001 From: shedaniel Date: Tue, 24 Dec 2019 11:31:40 +0800 Subject: Finishing workstation usage and close #220 --- .../rei/plugin/cooking/DefaultCookingDisplay.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java') diff --git a/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java index f1c33dd81..7eec9a749 100644 --- a/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java +++ b/src/main/java/me/shedaniel/rei/plugin/cooking/DefaultCookingDisplay.java @@ -28,7 +28,7 @@ public abstract class DefaultCookingDisplay implements TransferRecipeDisplay { private AbstractCookingRecipe recipe; private List> input; private List output; - + public DefaultCookingDisplay(AbstractCookingRecipe recipe) { this.recipe = recipe; this.input = recipe.getPreviewInputs().stream().map(i -> { @@ -41,49 +41,49 @@ public abstract class DefaultCookingDisplay implements TransferRecipeDisplay { this.input.add(FurnaceBlockEntity.createFuelTimeMap().keySet().stream().map(Item::getStackForRender).map(EntryStack::create).map(e -> e.setting(EntryStack.Settings.TOOLTIP_APPEND_EXTRA, stack -> Collections.singletonList(Formatting.YELLOW.toString() + I18n.translate("category.rei.smelting.fuel")))).collect(Collectors.toList())); this.output = Collections.singletonList(EntryStack.create(recipe.getOutput())); } - + @Override public Optional getRecipeLocation() { return Optional.ofNullable(recipe).map(AbstractCookingRecipe::getId); } - + @Override public List> getInputEntries() { return input; } - + @Override public List getOutputEntries() { return output; } - + public List getFuel() { return input.get(1); } - + @Override public List> getRequiredEntries() { return input; } - + @Deprecated public Optional getOptionalRecipe() { return Optional.ofNullable(recipe); } - + @Override public int getWidth() { return 1; } - + @Override public int getHeight() { return 1; } - + @Override public List> getOrganisedInputEntries(ContainerInfo containerInfo, Container container) { return CollectionUtils.map(recipe.getPreviewInputs(), i -> CollectionUtils.map(i.getMatchingStacksClient(), EntryStack::create)); } - + } -- cgit