Package org.bukkit.event.inventory
Class PrepareItemCraftEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.PrepareItemCraftEvent
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.inventory.InventoryEventtransaction
- 
Constructor SummaryConstructorsConstructorDescriptionPrepareItemCraftEvent(CraftingInventory what, InventoryView view, boolean isRepair) 
- 
Method SummaryModifier and TypeMethodDescriptionstatic HandlerListGets the primary Inventory involved in this transactionGet the recipe that has been formed.booleanisRepair()Check if this event was triggered by a tool repair operation rather than a crafting recipe.Methods inherited from class org.bukkit.event.inventory.InventoryEventgetView, getViewersMethods inherited from class org.bukkit.event.EventgetEventName, isAsynchronous
- 
Constructor Details- 
PrepareItemCraftEventpublic PrepareItemCraftEvent(@NotNull CraftingInventory what, @NotNull InventoryView view, boolean isRepair) 
 
- 
- 
Method Details- 
getRecipeGet the recipe that has been formed. If this event was triggered by a tool repair, this will be a temporary shapeless recipe representing the repair.- Returns:
- The recipe being crafted.
 
- 
getInventoryDescription copied from class:InventoryEventGets the primary Inventory involved in this transaction- Overrides:
- getInventoryin class- InventoryEvent
- Returns:
- The crafting inventory on which the recipe was formed.
 
- 
isRepairpublic boolean isRepair()Check if this event was triggered by a tool repair operation rather than a crafting recipe.- Returns:
- True if this is a repair.
 
- 
getHandlers- Overrides:
- getHandlersin class- InventoryEvent
 
- 
getHandlerList
 
-