Class RecipeChoice.MaterialChoice

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

public static class RecipeChoice.MaterialChoice extends Object implements RecipeChoice
Represents a choice of multiple matching Materials.
  • Constructor Details

    • MaterialChoice

      public MaterialChoice(@NotNull Material choice)
    • MaterialChoice

      public MaterialChoice(@NotNull Material... choices)
    • MaterialChoice

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

      public MaterialChoice(@NotNull List<Material> choices)
  • Method Details