Package | Description |
---|---|
org.bukkit |
More generalized classes in the API.
|
org.bukkit.event.inventory | |
org.bukkit.inventory |
Classes involved in manipulating player inventories and item interactions.
|
Modifier and Type | Method and Description |
---|---|
List<Recipe> |
Server.getRecipesFor(ItemStack result)
Get a list of all recipes for a given item.
|
static List<Recipe> |
Bukkit.getRecipesFor(ItemStack result)
Get a list of all recipes for a given item.
|
Iterator<Recipe> |
Server.recipeIterator()
Get an iterator through the list of crafting recipes.
|
static Iterator<Recipe> |
Bukkit.recipeIterator()
Get an iterator through the list of crafting recipes.
|
Modifier and Type | Method and Description |
---|---|
boolean |
Server.addRecipe(Recipe recipe)
Adds a recipe to the crafting manager.
|
static boolean |
Bukkit.addRecipe(Recipe recipe)
Adds a recipe to the crafting manager.
|
Modifier and Type | Method and Description |
---|---|
Recipe |
PrepareItemCraftEvent.getRecipe()
Get the recipe that has been formed.
|
Recipe |
CraftItemEvent.getRecipe() |
Constructor and Description |
---|
CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
boolean right,
boolean shift)
Deprecated.
|
CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
ClickType click,
InventoryAction action) |
CraftItemEvent(Recipe recipe,
InventoryView what,
InventoryType.SlotType type,
int slot,
ClickType click,
InventoryAction action,
int key) |
Modifier and Type | Class and Description |
---|---|
class |
FurnaceRecipe
Represents a smelting recipe.
|
class |
ShapedRecipe
Represents a shaped (ie normal) crafting recipe.
|
class |
ShapelessRecipe
Represents a shapeless recipe, where the arrangement of the ingredients on
the crafting grid does not matter.
|
Modifier and Type | Method and Description |
---|---|
Recipe |
CraftingInventory.getRecipe()
Get the current recipe formed on the crafting inventory, if any.
|
Copyright © 2022. All rights reserved.