Added input getters for Ore recipies, and javadoc warning for modders, #390
This commit is contained in:
parent
c58433692c
commit
fb87773c3a
2 changed files with 20 additions and 0 deletions
|
@ -251,4 +251,14 @@ public class ShapedOreRecipe implements IRecipe
|
||||||
mirrored = mirror;
|
mirrored = mirror;
|
||||||
return this;
|
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()));
|
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 a new issue