Interface CraftItemEvent
- All Superinterfaces:
AffectItemStackEvent, AffectSlotEvent, Cancellable, ChangeInventoryEvent, Event
- All Known Subinterfaces:
ClickContainerEvent.Recipe, ClickContainerEvent.Recipe.All, ClickContainerEvent.Recipe.Single, CraftItemEvent.Craft, CraftItemEvent.Preview
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThis event is fired after the item is taken out of the output slot.static interfaceThis event is fired before the item is taken out of the output slot but after completing the recipe in the grid.Nested classes/interfaces inherited from interface ChangeInventoryEvent
ChangeInventoryEvent.Drop, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand -
Method Summary
Methods inherited from interface AffectSlotEvent
filter, transactionsMethods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface ChangeInventoryEvent
inventory
-
Method Details
-
craftingInventory
CraftingInventory craftingInventory()Returns the crafting inventory.This includes the crafting grid and one output slot
- Returns:
- The crafting inventory
-
recipe
-
recipeKey
Optional<ResourceKey> recipeKey()
-