| Modifier and Type | Interface and Description |
|---|---|
static interface |
Ingredient.Builder
Builder for
Ingredients. |
| Modifier and Type | Field and Description |
|---|---|
static Ingredient |
NONE
An empty ingredient.
|
| Modifier and Type | Method and Description |
|---|---|
static Ingredient.Builder |
builder()
Creates a new
Ingredient.Builder to build an Ingredient. |
List<ItemStackSnapshot> |
displayedItems()
Returns the list of
ItemStacks used to display the ingredient in a recipe. |
static Ingredient |
of(GameDictionary.Entry... entries)
Creates a new
Ingredient for the provided
GameDictionary.Entrys. |
static Ingredient |
of(ItemStack... itemStacks)
Creates a new
Ingredient for the provided ItemStacks. |
static Ingredient |
of(ItemStackSnapshot... snapshots)
Creates a new
Ingredient for the provided ItemStackSnapshots. |
static Ingredient |
of(ItemType... itemTypes)
Creates a new
Ingredient for the provided ItemTypes. |
boolean |
test(ItemStack itemStack) |
static final Ingredient NONE
List<ItemStackSnapshot> displayedItems()
ItemStacks used to display the ingredient in a recipe.
These are not necessarily all the items that this Ingredient can match.static Ingredient.Builder builder()
Ingredient.Builder to build an Ingredient.static Ingredient of(@Nullable ItemStackSnapshot... snapshots)
Ingredient for the provided ItemStackSnapshots.snapshots - The snapshotsstatic Ingredient of(@Nullable ItemStack... itemStacks)
Ingredient for the provided ItemStacks.itemStacks - The itemStacksstatic Ingredient of(@Nullable ItemType... itemTypes)
Ingredient for the provided ItemTypes.itemTypes - The itemsstatic Ingredient of(@Nullable GameDictionary.Entry... entries)
Ingredient for the provided
GameDictionary.Entrys.entries - The GameDictionary Entries