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
Modifier and TypeInterfaceDescriptionstatic interface
This event is fired after the item is taken out of the output slot.static interface
This 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 org.spongepowered.api.event.item.inventory.ChangeInventoryEvent
ChangeInventoryEvent.Drop, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand
-
Method Summary
Methods inherited from interface org.spongepowered.api.event.item.inventory.AffectSlotEvent
filter, transactions
Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelled
Methods inherited from interface org.spongepowered.api.event.item.inventory.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
Optional<CraftingRecipe> recipe()Returns theRecipe
used for crafting- Returns:
- The recipe
-
recipeKey
Optional<ResourceKey> recipeKey()
-