From 1b21d26487636e50d03979acd5ca4a2a07761a25 Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 9 Jan 2019 23:35:45 +0800 Subject: Starting off rewrite --- .../plugin/potion/VanillaPotionRecipe.java | 56 ---------------------- 1 file changed, 56 deletions(-) delete mode 100755 src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java (limited to 'src/main/java/me/shedaniel/plugin/potion/VanillaPotionRecipe.java') 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 { - - 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 getOutput() { - return Arrays.asList(output); - } - - @Override - public List> getInput() { - List> input = new LinkedList<>(); - input.add(new ArrayList<>(Arrays.asList(this.input))); - input.add(new ArrayList<>(Arrays.asList(this.reactWith))); - return input; - } - - @Override - public List> getRecipeRequiredInput() { - List> input = new LinkedList<>(); - input.add(new ArrayList<>(Arrays.asList(this.input))); - input.add(new ArrayList<>(Arrays.asList(this.reactWith))); - return input; - } - - public List getOutput(int slot) { - List 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; - } -} -- cgit