Package org.bukkit.inventory
Class CraftingRecipe
java.lang.Object
org.bukkit.inventory.CraftingRecipe
- Direct Known Subclasses:
- ShapedRecipe,- ShapelessRecipe
Represents a shaped or shapeless crafting recipe.
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedCraftingRecipe(@NotNull NamespacedKey key, @NotNull ItemStack result) 
- 
Method SummaryModifier and TypeMethodDescriptionGets the category which this recipe will appear in the recipe book under.getGroup()Get the group of this recipe.getKey()Return the namespaced identifier for this object.Get the result of this recipe.voidsetCategory(@NotNull CraftingBookCategory category) Sets the category which this recipe will appear in the recipe book under.voidSet the group of this recipe.
- 
Constructor Details- 
CraftingRecipe
 
- 
- 
Method Details- 
getKeyDescription copied from interface:KeyedReturn the namespaced identifier for this object.
- 
getResultGet the result of this recipe.
- 
getGroupGet the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- Returns:
- recipe group. An empty string denotes no group. May not be null.
 
- 
setGroupSet the group of this recipe. Recipes with the same group may be grouped together when displayed in the client.- Parameters:
- group- recipe group. An empty string denotes no group. May not be null.
 
- 
getCategoryGets the category which this recipe will appear in the recipe book under. Defaults toCraftingBookCategory.MISCif not set.- Returns:
- recipe book category
 
- 
setCategorySets the category which this recipe will appear in the recipe book under. Defaults toCraftingBookCategory.MISCif not set.- Parameters:
- category- recipe book category
 
 
-