mirror of
https://github.com/GTNewHorizons/BloodMagic.git
synced 2026-11-21 12:32:19 +00:00
Vacation commit
This commit is contained in:
1 parent
e5536872a9
commit
8896414a51
9 files changed
+98
-37
No files matched your search
+15
-9
@@ -2,28 +2,34 @@ package WayofTime.alchemicalWizardry.api.bindingRegistry;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class UnbindingRecipe
|
||||
{
|
||||
public ItemStack requiredItem;
|
||||
public ItemStack outputItem;
|
||||
public List<ItemStack> outputItem;
|
||||
|
||||
public UnbindingRecipe(ItemStack outputItem, ItemStack requiredItem)
|
||||
public UnbindingRecipe(ItemStack inputItem, List<ItemStack> outputItem)
|
||||
{
|
||||
this.requiredItem = requiredItem;
|
||||
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 ItemStack getResult(ItemStack inputItem)
|
||||
{
|
||||
return this.getResult();
|
||||
}
|
||||
|
||||
public ItemStack getResult()
|
||||
public List<ItemStack> getResult()
|
||||
{
|
||||
return this.outputItem;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user