Interface Ingredient.Builder

    • Method Detail

      • with

        Ingredient.Builder with​(ItemType... types)
        Sets one or more ItemTypes for matching the ingredient.
        Parameters:
        types - The items
        Returns:
        This Builder, for chaining
      • with

        Ingredient.Builder with​(java.util.function.Supplier<? extends ItemType>... types)
        Sets one or more ItemTypes for matching the ingredient.
        Parameters:
        types - The items
        Returns:
        This Builder, for chaining
      • with

        Ingredient.Builder with​(ItemStack... types)
        Sets one ore more ItemStack for matching the ingredient.
        Parameters:
        types - The items
        Returns:
        This Builder, for chaining
      • with

        Ingredient.Builder with​(ResourceKey resourceKey,
                                java.util.function.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
      • with

        Ingredient.Builder with​(ItemStackSnapshot... types)
        Sets one ItemStack for matching the ingredient.
        Parameters:
        types - The items
        Returns:
        This Builder, for chaining
      • with

        Ingredient.Builder with​(ResourceKey itemTag)
        Sets the item tag for matching the ingredient.
        Parameters:
        itemTag - The item tag
        Returns:
        This Builder, for chaining