Package org.bukkit.inventory
Interface RecipeChoice
- All Known Implementing Classes:
ItemStackRecipeChoice
,RecipeChoice.ExactChoice
,RecipeChoice.MaterialChoice
Represents a potential item match within a recipe. All choices within a
recipe must be satisfied for it to be craftable. Choices must never be
null or air.
This class is not legal for implementation by plugins!
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
Represents a choice that will be valid only if one of the stacks is exactly matched (aside from stack size).static class
Represents a choice of multiple matching Materials. -
Method Summary
Modifier and TypeMethodDescriptionclone()
static @NotNull RecipeChoice
empty()
An "empty" recipe choice.Deprecated.for compatibility onlyboolean
default @NotNull RecipeChoice
validate
(boolean allowEmptyRecipes)
-
Method Details
-
empty
An "empty" recipe choice. Only valid as a recipe choice in specific places. Check the javadocs of a method before using it to be sure it's valid for that recipe and ingredient type.- Returns:
- the empty recipe choice
-
getItemStack
Deprecated.for compatibility onlyGets a single item stack representative of this stack choice.- Returns:
- a single representative item
-
clone
-
test
-
validate
-