Interface CraftItemEvent.Craft
-
- All Superinterfaces:
AffectItemStackEvent
,AffectSlotEvent
,Cancellable
,ChangeInventoryEvent
,ClickContainerEvent
,CraftItemEvent
,Event
,InteractContainerEvent
- Enclosing interface:
- CraftItemEvent
public static interface CraftItemEvent.Craft extends CraftItemEvent, ClickContainerEvent
This event is fired after the item is taken out of the output slot.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.ChangeInventoryEvent
ChangeInventoryEvent.Drop, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHand
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.container.ClickContainerEvent
ClickContainerEvent.Creative, ClickContainerEvent.Double, ClickContainerEvent.Drag, ClickContainerEvent.Drop, ClickContainerEvent.Middle, ClickContainerEvent.NumberPress, ClickContainerEvent.Primary, ClickContainerEvent.Recipe, ClickContainerEvent.Secondary, ClickContainerEvent.SelectTrade, ClickContainerEvent.Shift
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.CraftItemEvent
CraftItemEvent.Craft, CraftItemEvent.Preview
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
InteractContainerEvent.Close, InteractContainerEvent.Open
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ItemStackSnapshot
crafted()
The item crafted with this event.java.util.Optional<Slot>
slot()
Returns the crafting output Slot.-
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.container.ClickContainerEvent
inventory
-
Methods inherited from interface org.spongepowered.api.event.item.inventory.CraftItemEvent
craftingInventory, recipe
-
Methods inherited from interface org.spongepowered.api.event.item.inventory.container.InteractContainerEvent
container, cursorTransaction
-
-
-
-
Method Detail
-
crafted
ItemStackSnapshot crafted()
The item crafted with this event.- Returns:
- The crafting transaction
-
slot
java.util.Optional<Slot> slot()
Returns the crafting output Slot.- Specified by:
slot
in interfaceClickContainerEvent
- Returns:
- The crafting output Slot
-
-