aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java
diff options
context:
space:
mode:
authorshedaniel <daniel@shedaniel.me>2019-12-24 11:31:40 +0800
committershedaniel <daniel@shedaniel.me>2019-12-24 11:31:40 +0800
commit08d80d588a36598114087a79917e36e9d2cc97c3 (patch)
tree95cde698bbf1eca2f83143d39fd206cf2dc803f2 /src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java
parent7d438f554c4173880a407a6bb8fc80b8a4723845 (diff)
downloadRoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.tar.gz
RoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.tar.bz2
RoughlyEnoughItems-08d80d588a36598114087a79917e36e9d2cc97c3.zip
Finishing workstation usage and close #220
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java
index b470d5574..595f42e57 100644
--- a/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java
+++ b/src/main/java/me/shedaniel/rei/plugin/crafting/DefaultShapedDisplay.java
@@ -18,11 +18,11 @@ import java.util.Optional;
import java.util.stream.Collectors;
public class DefaultShapedDisplay implements DefaultCraftingDisplay {
-
+
private ShapedRecipe display;
private List<List<EntryStack>> input;
private List<EntryStack> output;
-
+
public DefaultShapedDisplay(ShapedRecipe recipe) {
this.display = recipe;
this.input = recipe.getPreviewInputs().stream().map(i -> {
@@ -34,40 +34,40 @@ public class DefaultShapedDisplay implements DefaultCraftingDisplay {
}).collect(Collectors.toList());
this.output = Collections.singletonList(EntryStack.create(recipe.getOutput()));
}
-
+
@Override
public Optional<Identifier> getRecipeLocation() {
return Optional.ofNullable(display).map(ShapedRecipe::getId);
}
-
+
@Override
public List<List<EntryStack>> getInputEntries() {
return input;
}
-
+
@Override
public List<EntryStack> getOutputEntries() {
return output;
}
-
+
@Override
public List<List<EntryStack>> getRequiredEntries() {
return input;
}
-
+
@Override
public int getHeight() {
return display.getHeight();
}
-
+
@Override
public Optional<Recipe<?>> getOptionalRecipe() {
return Optional.ofNullable(display);
}
-
+
@Override
public int getWidth() {
return display.getWidth();
}
-
+
}