Interface Ingredient.Builder
- All Superinterfaces:
- AbstractBuilder<Ingredient>,- Builder<Ingredient,,- Ingredient.Builder> - ResettableBuilder<Ingredient,- Ingredient.Builder> 
- Enclosing interface:
- Ingredient
Builder for 
Ingredients.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds theIngredientwith the specified items and or predicates.Sets one or more ItemTypes for matching the ingredient.Sets one ore more ItemStack for matching the ingredient.with(ItemStackSnapshot... types) Sets one ItemStack for matching the ingredient.Sets one or more ItemTypes for matching the ingredient.with(ResourceKey itemTag) Sets the item tag for matching the ingredient.with(ResourceKey resourceKey, Predicate<ItemStack> predicate, ItemStack... exemplaryTypes) Sets a Predicate for matching the ingredient.
- 
Method Details- 
withSets one or more ItemTypes for matching the ingredient.- Parameters:
- types- The items
- Returns:
- This Builder, for chaining
 
- 
withSets one or more ItemTypes for matching the ingredient.- Parameters:
- types- The items
- Returns:
- This Builder, for chaining
 
- 
withSets one ore more ItemStack for matching the ingredient.- Parameters:
- types- The items
- Returns:
- This Builder, for chaining
 
- 
withIngredient.Builder with(ResourceKey resourceKey, Predicate<ItemStack> predicate, ItemStack... exemplaryTypes) Sets a Predicate for matching the ingredient.Exemplary types are used for the vanilla recipe book. Note: Predicate ingredients may not be fully supported for all recipe types - Parameters:
- predicate- The predicate
- exemplaryTypes- The items
- Returns:
- This Builder, for chaining
 
- 
withSets one ItemStack for matching the ingredient.- Parameters:
- types- The items
- Returns:
- This Builder, for chaining
 
- 
withSets the item tag for matching the ingredient.- Parameters:
- itemTag- The item tag
- Returns:
- This Builder, for chaining
 
- 
buildIngredient build()Builds theIngredientwith the specified items and or predicates.- Specified by:
- buildin interface- AbstractBuilder<Ingredient>
- Returns:
- The new Ingredient
 
 
-