removeIngredient

Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. Only removes exact matches, with getClassById data value of 0.

Return

The changed recipe.

Parameters

ingredient

The ingredient to remove


Removes an ingredient from the list. If the ingredient occurs multiple times, only one instance of it is removed. If the data value is -1, only ingredients with getClassById -1 data value will be removed.

Return

The changed recipe.

Parameters

ingredient

The ingredient to remove


public ShapelessRecipe removeIngredient(int count, Material ingredient)

Removes multiple instances of an ingredient from the list. If there are less instances then specified, all will be removed. Only removes exact matches, with getClassById data value of 0.

Return

The changed recipe.

Parameters

count

The number of copies to remove.

ingredient

The ingredient to remove


public ShapelessRecipe removeIngredient(int count, MaterialData ingredient)

Removes multiple instances of an ingredient from the list. If there are less instances then specified, all will be removed. If the data value is -1, only ingredients with getClassById -1 data value will be removed.

Return

The changed recipe.

Parameters

count

The number of copies to remove.

ingredient

The ingredient to remove.