Modifier and Type | Interface and Description |
---|---|
static interface |
Ingredient.Builder
Builder for
Ingredient s. |
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
ItemStack s used to display the ingredient in a recipe. |
static Ingredient |
of(GameDictionary.Entry... entries)
Creates a new
Ingredient for the provided
GameDictionary.Entry s. |
static Ingredient |
of(ItemStack... itemStacks)
Creates a new
Ingredient for the provided ItemStack s. |
static Ingredient |
of(ItemStackSnapshot... snapshots)
Creates a new
Ingredient for the provided ItemStackSnapshot s. |
static Ingredient |
of(ItemType... itemTypes)
Creates a new
Ingredient for the provided ItemType s. |
boolean |
test(ItemStack itemStack) |
static final Ingredient NONE
List<ItemStackSnapshot> displayedItems()
ItemStack
s 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 ItemStackSnapshot
s.snapshots
- The snapshotsstatic Ingredient of(@Nullable ItemStack... itemStacks)
Ingredient
for the provided ItemStack
s.itemStacks
- The itemStacksstatic Ingredient of(@Nullable ItemType... itemTypes)
Ingredient
for the provided ItemType
s.itemTypes
- The itemsstatic Ingredient of(@Nullable GameDictionary.Entry... entries)
Ingredient
for the provided
GameDictionary.Entry
s.entries
- The GameDictionary Entries