Attempt #1 at orb recipe handlers
They do not work, they are not initialized. i need a break. my brain hurts
This commit is contained in:
parent
b170654ed3
commit
142cefd9be
7 changed files with 33 additions and 69 deletions
|
@ -28,6 +28,7 @@ public class ShapedBloodOrbRecipe implements IRecipe
|
|||
private Object[] input = null;
|
||||
public int width = 0;
|
||||
public int height = 0;
|
||||
private int tier;
|
||||
private boolean mirrored = true;
|
||||
|
||||
public ShapedBloodOrbRecipe(Block result, Object... recipe)
|
||||
|
@ -237,6 +238,7 @@ public class ShapedBloodOrbRecipe implements IRecipe
|
|||
if (slot != null && slot.getItem() instanceof IBloodOrb)
|
||||
{
|
||||
IBloodOrb orb = (IBloodOrb) slot.getItem();
|
||||
tier = (Integer) target;
|
||||
if (orb.getOrbLevel(slot.getItemDamage()) < (Integer) target)
|
||||
{
|
||||
return false;
|
||||
|
@ -296,4 +298,9 @@ public class ShapedBloodOrbRecipe implements IRecipe
|
|||
|
||||
return aitemstack;
|
||||
}
|
||||
|
||||
public int getTier()
|
||||
{
|
||||
return tier;
|
||||
}
|
||||
}
|
|
@ -23,6 +23,7 @@ public class ShapelessBloodOrbRecipe implements IRecipe
|
|||
{
|
||||
private ItemStack output = null;
|
||||
private ArrayList<Object> input = new ArrayList<Object>();
|
||||
private int tier;
|
||||
|
||||
public ShapelessBloodOrbRecipe(Block result, Object... recipe)
|
||||
{
|
||||
|
@ -130,9 +131,10 @@ public class ShapelessBloodOrbRecipe implements IRecipe
|
|||
// orb value of the item instead
|
||||
if (next instanceof Integer)
|
||||
{
|
||||
if (slot != null && slot.getItem() instanceof IBloodOrb)
|
||||
if (slot.getItem() instanceof IBloodOrb)
|
||||
{
|
||||
IBloodOrb orb = (IBloodOrb) slot.getItem();
|
||||
tier = (Integer) next;
|
||||
if (orb.getOrbLevel(slot.getItemDamage()) < (Integer) next)
|
||||
{
|
||||
return false;
|
||||
|
@ -188,4 +190,9 @@ public class ShapelessBloodOrbRecipe implements IRecipe
|
|||
|
||||
return aitemstack;
|
||||
}
|
||||
|
||||
public int getTier()
|
||||
{
|
||||
return tier;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue