public class PrepareItemCraftEvent extends InventoryEvent
Event.Result
transaction
Constructor | Description |
---|---|
PrepareItemCraftEvent(CraftingInventory what,
InventoryView view,
boolean isRepair) |
Modifier and Type | Method | Description |
---|---|---|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
CraftingInventory |
getInventory() |
Gets the primary Inventory involved in this transaction
|
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.
|
getEventName, isAsynchronous
getView, getViewers
public PrepareItemCraftEvent(@NotNull CraftingInventory what, @NotNull InventoryView view, boolean isRepair)
@Nullable public Recipe getRecipe()
@NotNull public CraftingInventory getInventory()
InventoryEvent
getInventory
in class InventoryEvent
public boolean isRepair()
@NotNull public HandlerList getHandlers()
getHandlers
in class InventoryEvent
@NotNull public static HandlerList getHandlerList()
Copyright © 2019. All rights reserved.