aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-06-14 22:10:42 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-06-14 22:10:42 +0800
commit69a531030df74768d86025cd5668e0418a3c1f07 (patch)
treef128d5b07b0a8cfa8f02def50477ce8bfef4a50e /src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java
parent5c29f7917d71dc0042ee2b71a1f7ba4f4c347fde (diff)
downloadRoughlyEnoughItems-69a531030df74768d86025cd5668e0418a3c1f07.tar.gz
RoughlyEnoughItems-69a531030df74768d86025cd5668e0418a3c1f07.tar.bz2
RoughlyEnoughItems-69a531030df74768d86025cd5668e0418a3c1f07.zip
stuff
Diffstat (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java64
1 files changed, 0 insertions, 64 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java
deleted file mode 100644
index 6e490c47c..000000000
--- a/src/main/java/me/shedaniel/rei/plugin/DefaultBlastingDisplay.java
+++ /dev/null
@@ -1,64 +0,0 @@
-/*
- * Roughly Enough Items by Danielshe.
- * Licensed under the MIT License.
- */
-
-package me.shedaniel.rei.plugin;
-
-import me.shedaniel.rei.api.RecipeDisplay;
-import net.minecraft.block.entity.FurnaceBlockEntity;
-import net.minecraft.item.Item;
-import net.minecraft.item.ItemStack;
-import net.minecraft.recipe.AbstractCookingRecipe;
-import net.minecraft.recipe.BlastingRecipe;
-import net.minecraft.util.Identifier;
-
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-import java.util.Optional;
-import java.util.stream.Collectors;
-
-public class DefaultBlastingDisplay implements RecipeDisplay<BlastingRecipe> {
-
- private BlastingRecipe display;
- private List<List<ItemStack>> input;
- private List<ItemStack> output;
-
- public DefaultBlastingDisplay(BlastingRecipe recipe) {
- this.display = recipe;
- this.input = recipe.getPreviewInputs().stream().map(i -> Arrays.asList(i.getStackArray())).collect(Collectors.toList());
- this.input.add(FurnaceBlockEntity.createFuelTimeMap().keySet().stream().map(Item::getDefaultStack).collect(Collectors.toList()));
- this.output = Collections.singletonList(recipe.getOutput());
- }
-
- @Override
- public Optional<Identifier> getRecipeLocation() {
- return Optional.ofNullable(display).map(AbstractCookingRecipe::getId);
- }
-
- @Override
- public List<List<ItemStack>> getInput() {
- return input;
- }
-
- public List<ItemStack> getFuel() {
- return input.get(1);
- }
-
- @Override
- public List<ItemStack> getOutput() {
- return output;
- }
-
- @Override
- public Identifier getRecipeCategory() {
- return DefaultPlugin.BLASTING;
- }
-
- @Override
- public List<List<ItemStack>> getRequiredItems() {
- return input;
- }
-
-}