Class RecipeChoice.MaterialChoice

java.lang.Object
org.bukkit.inventory.RecipeChoice.MaterialChoice
All Implemented Interfaces:
Cloneable, Predicate<ItemStack>, RecipeChoice
Enclosing interface:
RecipeChoice

@Obsolete(since="1.21.11") public static sealed class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
Represents a choice of multiple matching Materials.
Since:
1.13.1
API Note:
recommended to use RecipeChoice.ItemTypeChoice
  • Constructor Details

    • MaterialChoice

      protected MaterialChoice()
    • MaterialChoice

      public MaterialChoice(Material choice)
      Since:
      1.13.2
    • MaterialChoice

      public MaterialChoice(Material... choices)
      Since:
      1.13.2
    • MaterialChoice

      public MaterialChoice(Tag<Material> choices)
      Constructs a MaterialChoice with the current values of the specified tag.
      Parameters:
      choices - the tag
      Since:
      1.14
    • MaterialChoice

      public MaterialChoice(List<Material> choices)
      Since:
      1.13.1
  • Method Details