Interface RecipeChoice.ItemTypeChoice

All Superinterfaces:
Cloneable, Predicate<ItemStack>, RecipeChoice
Enclosing interface:
RecipeChoice

public static sealed interface RecipeChoice.ItemTypeChoice extends RecipeChoice
Represents a choice that will be valid if the ItemStack.getType() matches any of the item types in the set.
See Also:
  • Method Details

    • itemTypes

      RegistryKeySet<ItemType> itemTypes()
      Gets the set of item types that this choice will match.
      Returns:
      the set of item types