public class OreItemIngredient extends AbstractIngredient
| Constructor and Description |
|---|
OreItemIngredient(java.lang.String name) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<Item> |
consumeOnCrafting(Item original,
CraftingGrid craftingGrid)
Performs any necessary actions when this ingredient is consumed due to crafting a single item.
|
boolean |
equals(java.lang.Object other) |
java.util.Collection<Item> |
getExampleItems()
Returns a list of example items.
|
java.lang.String |
getName() |
java.util.Collection<java.lang.String> |
getPossibleItemIds()
Returns a list of all items that could possibly match this ingredient.
|
int |
hashCode() |
boolean |
matches(Item item)
Checks if this ingredient matches the given item.
|
java.lang.String |
toString() |
getTag, isSubsetOf, withTagclone, finalize, getClass, notify, notifyAll, wait, wait, waitforBlock, forDictionary, forItem, forItempublic java.lang.String getName()
public java.util.Collection<java.lang.String> getPossibleItemIds()
ItemIngredientpublic java.util.Collection<Item> getExampleItems()
ItemIngredientpublic boolean matches(Item item)
ItemIngredientitem - Item to checkpublic java.util.Optional<Item> consumeOnCrafting(Item original, CraftingGrid craftingGrid)
ItemIngredientoriginal - ingredientcraftingGrid - CraftingGrid usedItem, or an empty optional if the item was empty.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object