Added input getters for Ore recipies, and javadoc warning for modders, #390
This commit is contained in:
parent
c58433692c
commit
fb87773c3a
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue