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 ChangeInventoryEvent
ChangeInventoryEvent.Drop, ChangeInventoryEvent.Held, ChangeInventoryEvent.Pickup, ChangeInventoryEvent.SwapHandNested classes/interfaces inherited from interface ClickContainerEvent
ClickContainerEvent.Creative, ClickContainerEvent.Double, ClickContainerEvent.Drag, ClickContainerEvent.Drop, ClickContainerEvent.Middle, ClickContainerEvent.NumberPress, ClickContainerEvent.Primary, ClickContainerEvent.Recipe, ClickContainerEvent.Secondary, ClickContainerEvent.SelectTrade, ClickContainerEvent.ShiftNested classes/interfaces inherited from interface CraftItemEvent
CraftItemEvent.Craft, CraftItemEvent.PreviewNested classes/interfaces inherited from interface InteractContainerEvent
InteractContainerEvent.Close, InteractContainerEvent.Open -
Method Summary
Methods inherited from interface AffectSlotEvent
filter, transactionsMethods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface ClickContainerEvent
inventory, slotMethods inherited from interface CraftItemEvent
craftingInventory, recipe, recipeKeyMethods inherited from interface 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
-