Added input getters for Ore recipies, and javadoc warning for modders, #390

This commit is contained in:
LexManos 2013-01-28 17:33:53 -08:00
parent c58433692c
commit fb87773c3a
2 changed files with 20 additions and 0 deletions

View File

@ -251,4 +251,14 @@ public class ShapedOreRecipe implements IRecipe
mirrored = mirror;
return this;
}
/**
* Returns the input for this recipe, any mod accessing this value should never
* manipulate the values in this array as it will effect the recipe itself.
* @return The recipes input vales.
*/
public Object[] getInput()
{
return this.input;
}
}

View File

@ -139,4 +139,14 @@ public class ShapelessOreRecipe implements IRecipe
{
return (target.itemID == input.itemID && (target.getItemDamage() == -1 || target.getItemDamage() == input.getItemDamage()));
}
/**
* Returns the input for this recipe, any mod accessing this value should never
* manipulate the values in this array as it will effect the recipe itself.
* @return The recipes input vales.
*/
public ArrayList getInput()
{
return this.input;
}
}