public class PrepareItemCraftEvent extends InventoryEvent
Event.Resulttransaction| Constructor and Description | 
|---|
PrepareItemCraftEvent(@NotNull CraftingInventory what,
                     @NotNull InventoryView view,
                     boolean isRepair)  | 
| Modifier and Type | Method and Description | 
|---|---|
static @NotNull HandlerList | 
getHandlerList()  | 
@NotNull HandlerList | 
getHandlers()  | 
@NotNull CraftingInventory | 
getInventory()
Gets the primary Inventory involved in this transaction 
 | 
@Nullable Recipe | 
getRecipe()
Get the recipe that has been formed. 
 | 
boolean | 
isRepair()
Check if this event was triggered by a tool repair operation rather
 than a crafting recipe. 
 | 
getView, getViewersgetEventName, isAsynchronouspublic PrepareItemCraftEvent(@NotNull
                             @NotNull CraftingInventory what,
                             @NotNull
                             @NotNull InventoryView view,
                             boolean isRepair)
@Nullable public @Nullable Recipe getRecipe()
@NotNull public @NotNull CraftingInventory getInventory()
InventoryEventgetInventory in class InventoryEventpublic boolean isRepair()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class InventoryEvent@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.