Package org.bukkit.inventory
Interface RecipeChoice
- All Known Implementing Classes:
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
Nested ClassesModifier and TypeInterfaceDescriptionstatic classRepresents a choice that will be valid only if one of the stacks is exactly matched (aside from stack size).static classRepresents a choice of multiple matching Materials. -
Method Summary
Modifier and TypeMethodDescriptionclone()static @NotNull RecipeChoiceempty()An "empty" recipe choice.Deprecated.for compatibility onlybooleandefault @NotNull RecipeChoicevalidate(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
-