-
方法概要
void
Adds new recipe to the end of the book.
Gets all the recipes in the book.
boolean
Checks for the existence of recipes in the book.
void
Clears the existing book recipes, and sets the book to use the provided
recipes.
addEnchant, addItemFlags, getDisplayName, getEnchantLevel, getEnchants, getItemFlags, getLocalizedName, getLore, hasConflictingEnchant, hasDisplayName, hasEnchant, hasEnchants, hasItemFlag, hasLocalizedName, hasLore, isUnbreakable, removeEnchant, removeItemFlags, setDisplayName, setLocalizedName, setLore, setUnbreakable
-
方法详细资料
-
hasRecipes
boolean hasRecipes()
Checks for the existence of recipes in the book.
- 返回:
- true if the book has recipes
-
getRecipes
Gets all the recipes in the book.
- 返回:
- list of all the recipes in the book
-
setRecipes
Clears the existing book recipes, and sets the book to use the provided
recipes.
- 参数:
recipes
- A list of recipes to set the book to use
-
addRecipe
Adds new recipe to the end of the book.
- 参数:
recipes
- A list of recipe keys
-