ActuallyAdditions/src/main/java/de/ellpeck/actuallyadditions/api/recipe/CrusherRecipe.java

46 lines
1.1 KiB
Java
Raw Normal View History

2016-01-05 04:47:35 +01:00
package de.ellpeck.actuallyadditions.api.recipe;
import net.minecraft.item.ItemStack;
import net.minecraft.item.crafting.Ingredient;
2016-01-05 04:47:35 +01:00
public class CrusherRecipe {
2016-01-05 04:47:35 +01:00
protected Ingredient input;
protected ItemStack outputOne;
protected ItemStack outputTwo;
protected int outputChance;
@Deprecated
public CrusherRecipe(ItemStack input, ItemStack outputOne, ItemStack outputTwo, int outputChance) {
this(Ingredient.fromStacks(input), outputOne, outputTwo, outputChance);
}
public CrusherRecipe(Ingredient input, ItemStack outputOne, ItemStack outputTwo, int outputChance) {
this.input = input;
this.outputOne = outputOne;
this.outputTwo = outputTwo;
this.outputChance = outputChance;
}
public boolean matches(ItemStack stack) {
return this.input.test(stack);
}
public ItemStack getOutputOne() {
2019-02-27 19:53:05 +01:00
return this.outputOne;
2016-01-05 04:47:35 +01:00
}
public ItemStack getOutputTwo() {
2019-02-27 19:53:05 +01:00
return this.outputTwo;
}
public int getSecondChance() {
2019-02-27 19:53:05 +01:00
return this.outputChance;
}
public Ingredient getInput() {
2019-02-27 19:53:05 +01:00
return this.input;
}
2016-01-05 04:47:35 +01:00
}