Error control, missing Item Control

Import ( not done ).
And recursive file importing.
This commit is contained in:
AlgorithmX2
2014-02-10 17:15:43 -06:00
parent 4a87ceac4f
commit 21c254f09f
5 changed files with 159 additions and 87 deletions
+2 -2
View File
@@ -98,7 +98,7 @@ public class Ingredient
throw new RecipeError( input + " : Needs at least Namespace and Name." );
}
public ItemStack getItemStack() throws RegistrationError
public ItemStack getItemStack() throws RegistrationError, MissingIngredientError
{
if ( isAir )
throw new RegistrationError( "Found blank item and expected a real item." );
@@ -117,7 +117,7 @@ public class Ingredient
if ( o instanceof Block )
return new ItemStack( (Block) o, 1, meta );
throw new RegistrationError( "Unable to find item: " + toString() );
throw new MissingIngredientError( "Unable to find item: " + toString() );
}
@Override