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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue