aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java
diff options
context:
space:
mode:
authorUnknown <shekwancheung0528@gmail.com>2019-01-09 23:35:45 +0800
committerUnknown <shekwancheung0528@gmail.com>2019-01-09 23:35:45 +0800
commit1b21d26487636e50d03979acd5ca4a2a07761a25 (patch)
treed7d066b4e7491474f3a962593e97a2d6f0aa2ea2 /src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java
parent77af6b3f548d34bfdafc585847d3d80ec783c7e7 (diff)
downloadRoughlyEnoughItems-1b21d26487636e50d03979acd5ca4a2a07761a25.tar.gz
RoughlyEnoughItems-1b21d26487636e50d03979acd5ca4a2a07761a25.tar.bz2
RoughlyEnoughItems-1b21d26487636e50d03979acd5ca4a2a07761a25.zip
Starting off rewrite
Diffstat (limited to 'src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java')
-rwxr-xr-xsrc/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java b/src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java
deleted file mode 100755
index eb482d8d3..000000000
--- a/src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java
+++ /dev/null
@@ -1,56 +0,0 @@
-package me.shedaniel.plugin.potion;
-
-import me.shedaniel.api.IRecipe;
-import net.minecraft.block.Blocks;
-import net.minecraft.item.ItemStack;
-
-import java.util.ArrayList;
-import java.util.Arrays;
-import java.util.LinkedList;
-import java.util.List;
-
-public class VanillaPotionRecipe implements IRecipe<ItemStack> {
-
- private ItemStack[] input, reactWith, output;
-
- @Override
- public String getId() {
- return "potion";
- }
-
- public VanillaPotionRecipe(ItemStack[] input, ItemStack[] reactWith, ItemStack[] output) {
- this.input = input;
- this.reactWith = reactWith;
- this.output = output;
- }
-
- @Override
- public List<ItemStack> getOutput() {
- return Arrays.asList(output);
- }
-
- @Override
- public List<List<ItemStack>> getInput() {
- List<List<ItemStack>> input = new LinkedList<>();
- input.add(new ArrayList<>(Arrays.asList(this.input)));
- input.add(new ArrayList<>(Arrays.asList(this.reactWith)));
- return input;
- }
-
- @Override
- public List<List<ItemStack>> getRecipeRequiredInput() {
- List<List<ItemStack>> input = new LinkedList<>();
- input.add(new ArrayList<>(Arrays.asList(this.input)));
- input.add(new ArrayList<>(Arrays.asList(this.reactWith)));
- return input;
- }
-
- 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;
- }
-}