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 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, transactionsMethods inherited from interface org.spongepowered.api.event.Cancellable
isCancelled, setCancelledMethods 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 theRecipeused for crafting- Returns:
- The recipe
-
recipeKey
Optional<ResourceKey> recipeKey()
-