Moved Recipe Registration to Init, Added Recipe Baking.

This commit is contained in:
AlgorithmX2
2014-07-25 17:49:49 -05:00
parent 846e8a0384
commit 31cb594f4d
10 changed files with 135 additions and 63 deletions
+10
View File
@@ -17,6 +17,7 @@ public class GroupIngredient implements IIngredient
int qty = 0;
final String name;
final List<IIngredient> ingredients;
ItemStack[] baked;
boolean isInside = false;
@@ -57,6 +58,9 @@ public class GroupIngredient implements IIngredient
@Override
public ItemStack[] getItemStackSet() throws RegistrationError, MissingIngredientError
{
if ( baked != null )
return baked;
if ( isInside )
return new ItemStack[0];
@@ -107,4 +111,10 @@ public class GroupIngredient implements IIngredient
return false;
}
@Override
public void bake() throws RegistrationError, MissingIngredientError
{
baked = getItemStackSet();
}
}