aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.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/DefaultBrewingDisplay.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/DefaultBrewingDisplay.java')
-rw-r--r--src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java59
1 files changed, 0 insertions, 59 deletions
diff --git a/src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java b/src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java
deleted file mode 100644
index 80c49b53e..000000000
--- a/src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Roughly Enough Items by Danielshe.
- * Licensed under the MIT License.
- */
-
-package me.shedaniel.rei.plugin;
-
-import com.google.common.collect.Lists;
-import me.shedaniel.rei.api.RecipeDisplay;
-import net.minecraft.block.Blocks;
-import net.minecraft.item.ItemStack;
-import net.minecraft.recipe.Ingredient;
-import net.minecraft.util.Identifier;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.Collections;
-import java.util.List;
-
-public class DefaultBrewingDisplay implements RecipeDisplay {
-
- private ItemStack input, output;
- private Ingredient reactant;
-
- public DefaultBrewingDisplay(ItemStack input, Ingredient reactant, ItemStack output) {
- this.input = input;
- this.reactant = reactant;
- this.output = output;
- }
-
- @Override
- public List<List<ItemStack>> getInput() {
- return Lists.newArrayList(Collections.singletonList(input), Arrays.asList(reactant.getStackArray()));
- }
-
- @Override
- public List<ItemStack> getOutput() {
- return Collections.singletonList(output);
- }
-
- @Override
- public Identifier getRecipeCategory() {
- return DefaultPlugin.BREWING;
- }
-
- public List<ItemStack> getOutput(int slot) {
- List<ItemStack> stack = new ArrayList<>();
- for(int i = 0; i < slot * 2; i++)
- stack.add(new ItemStack(Blocks.AIR));
- for(int i = 0; i < 6 - slot * 2; i++)
- stack.addAll(getOutput());
- return stack;
- }
-
- @Override
- public List<List<ItemStack>> getRequiredItems() {
- return Collections.singletonList(Collections.singletonList(ItemStack.EMPTY));
- }
-}