From 69a531030df74768d86025cd5668e0418a3c1f07 Mon Sep 17 00:00:00 2001 From: Unknown Date: Fri, 14 Jun 2019 22:10:42 +0800 Subject: stuff --- .../rei/plugin/DefaultBrewingDisplay.java | 59 ---------------------- 1 file changed, 59 deletions(-) delete mode 100644 src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java (limited to 'src/main/java/me/shedaniel/rei/plugin/DefaultBrewingDisplay.java') 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> getInput() { - return Lists.newArrayList(Collections.singletonList(input), Arrays.asList(reactant.getStackArray())); - } - - @Override - public List getOutput() { - return Collections.singletonList(output); - } - - @Override - public Identifier getRecipeCategory() { - return DefaultPlugin.BREWING; - } - - 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; - } - - @Override - public List> getRequiredItems() { - return Collections.singletonList(Collections.singletonList(ItemStack.EMPTY)); - } -} -- cgit