Interface CraftItemEvent
-
- All Superinterfaces:
AffectItemStackEvent
,AffectSlotEvent
,Cancellable
,ChangeInventoryEvent
,Event
- All Known Subinterfaces:
ClickContainerEvent.Recipe
,ClickContainerEvent.Recipe.All
,ClickContainerEvent.Recipe.Single
,CraftItemEvent.Craft
,CraftItemEvent.Preview
public interface CraftItemEvent extends ChangeInventoryEvent
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface 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.-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.ChangeInventoryEvent
ChangeInventoryEvent.Drop, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CraftingInventory
craftingInventory()
Returns the crafting inventory.Optional<CraftingRecipe>
recipe()
Returns theRecipe
used for crafting-
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 Detail
-
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
-
-