mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-21 12:32:19 +00:00
33 lines
928 B
Java
33 lines
928 B
Java
package WayofTime.alchemicalWizardry.api.bindingRegistry;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
public class UnbindingRecipe {
|
|
|
|
public ItemStack requiredItem;
|
|
public List<ItemStack> outputItem;
|
|
|
|
public UnbindingRecipe(ItemStack inputItem, List<ItemStack> outputItem) {
|
|
this.requiredItem = inputItem;
|
|
this.outputItem = outputItem;
|
|
}
|
|
|
|
public UnbindingRecipe(ItemStack inputItem, ItemStack outputItem) {
|
|
this.requiredItem = inputItem;
|
|
List<ItemStack> newList = new ArrayList<ItemStack>();
|
|
newList.add(outputItem);
|
|
this.outputItem = newList;
|
|
}
|
|
|
|
public boolean doesRequiredItemMatch(ItemStack testStack) {
|
|
return !(testStack == null || this.requiredItem == null) && this.requiredItem.isItemEqual(testStack);
|
|
}
|
|
|
|
public List<ItemStack> getResult() {
|
|
return this.outputItem;
|
|
}
|
|
}
|