Interface CraftItemEvent.Preview
- All Superinterfaces:
AffectItemStackEvent
,AffectSlotEvent
,Cancellable
,ChangeInventoryEvent
,ClickContainerEvent
,CraftItemEvent
,Event
,InteractContainerEvent
- All Known Subinterfaces:
ClickContainerEvent.Recipe
,ClickContainerEvent.Recipe.All
,ClickContainerEvent.Recipe.Single
- Enclosing interface:
- CraftItemEvent
This event is fired before the item is taken out of the
output slot but after completing the recipe in the grid.
-
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
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, slot
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 Details
-
preview
SlotTransaction preview()The SlotTransaction on the output slot.Setting a custom Item here changes the result of the recipe replacing the default result
- Returns:
- The output SlotTransaction
-