parent
e5b795fddc
commit
3328c4db74
6 changed files with 11 additions and 8 deletions
|
@ -1,5 +1,6 @@
|
|||
package WayofTime.alchemicalWizardry.api.altarRecipeRegistry;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Set;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -16,6 +17,7 @@ public class AltarRecipe
|
|||
public ItemStack requiredItem;
|
||||
public ItemStack result;
|
||||
public boolean useTag;
|
||||
public ArrayList<Object> input = new ArrayList<Object>();
|
||||
|
||||
public AltarRecipe(ItemStack result, ItemStack requiredItem, int minTier, int liquidRequired, int consumptionRate, int drainRate, boolean canBeFilled)
|
||||
{
|
||||
|
|
|
@ -41,13 +41,13 @@ public class ShapelessBloodOrbRecipe implements IRecipe
|
|||
{
|
||||
if (in instanceof IBloodOrb)
|
||||
{ //If the item is an instanceof IBloodOrb then save the level of the orb
|
||||
input.add((Integer) (((IBloodOrb) in).getOrbLevel()));
|
||||
input.add(((IBloodOrb) in).getOrbLevel());
|
||||
}
|
||||
else if (in instanceof ItemStack)
|
||||
{
|
||||
if (((ItemStack)in).getItem() instanceof IBloodOrb)
|
||||
{
|
||||
input.add((Integer) (((IBloodOrb) ((ItemStack)in).getItem()).getOrbLevel()));
|
||||
input.add(((IBloodOrb) ((ItemStack)in).getItem()).getOrbLevel());
|
||||
}
|
||||
else input.add(((ItemStack) in).copy());
|
||||
} else if (in instanceof Item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue