public interface CraftItemEvent extends ChangeInventoryEvent
Modifier and Type | Interface and Description |
---|---|
static interface |
CraftItemEvent.Craft
This event is fired after the item is taken out of the output slot.
|
static interface |
CraftItemEvent.Preview
This event is fired before the item is taken out of the
output slot but after completing the recipe in the grid.
|
ChangeInventoryEvent.Equipment, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand, ChangeInventoryEvent.Transfer
Modifier and Type | Method and Description |
---|---|
CraftingInventory |
getCraftingInventory()
Returns the crafting inventory.
|
Optional<CraftingRecipe> |
getRecipe()
Returns the
Recipe used for crafting |
getTargetInventory
filter, getTransactions
getCause, getContext, getSource
isCancelled, setCancelled
CraftingInventory getCraftingInventory()
This includes the crafting grid and one output slot
Optional<CraftingRecipe> getRecipe()
Recipe
used for crafting