public abstract class AbstractIngredient extends java.lang.Object implements ItemIngredient
| Constructor and Description |
|---|
AbstractIngredient() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<java.lang.String> |
getTag()
Returns the ingredient tag.
|
boolean |
isSubsetOf(ItemIngredient ingredient)
Checks if this ingredient is a subset of another ingredient.
|
ItemIngredient |
withTag(java.lang.String tag)
Sets the ingredient tag.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconsumeOnCrafting, forBlock, forDictionary, forItem, forItem, getExampleItems, getPossibleItemIds, matchespublic boolean isSubsetOf(ItemIngredient ingredient)
ItemIngredientisSubsetOf in interface ItemIngredientingredient - The another ingredientpublic java.util.Optional<java.lang.String> getTag()
ItemIngredientgetTag in interface ItemIngredientpublic ItemIngredient withTag(java.lang.String tag)
ItemIngredientwithTag in interface ItemIngredienttag - The ingredient tag