Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.inventory.PrepareItemCraftEvent Class Reference
Inheritance diagram for org.bukkit.event.inventory.PrepareItemCraftEvent:
org.bukkit.event.inventory.InventoryEvent org.bukkit.event.Event

Public Member Functions

 PrepareItemCraftEvent (CraftingInventory what, InventoryView view, boolean isRepair)
 
Recipe getRecipe ()
 
CraftingInventory getInventory ()
 
boolean isRepair ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.inventory.InventoryEvent
 InventoryEvent (InventoryView transaction)
 
Inventory getInventory ()
 
List< HumanEntitygetViewers ()
 
InventoryView getView ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 
- Static Public Member Functions inherited from org.bukkit.event.inventory.InventoryEvent
static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.inventory.InventoryEvent
InventoryView transaction
 

Detailed Description

Definition at line 8 of file PrepareItemCraftEvent.java.

Member Function Documentation

CraftingInventory org.bukkit.event.inventory.PrepareItemCraftEvent.getInventory ( )
Returns
The crafting inventory on which the recipe was formed.

Definition at line 34 of file PrepareItemCraftEvent.java.

34  {
35  return matrix;
36  }
Recipe org.bukkit.event.inventory.PrepareItemCraftEvent.getRecipe ( )

Get 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.

Definition at line 26 of file PrepareItemCraftEvent.java.

References org.bukkit.inventory.CraftingInventory.getRecipe().

26  {
27  return matrix.getRecipe();
28  }
boolean org.bukkit.event.inventory.PrepareItemCraftEvent.isRepair ( )

Check if this event was triggered by a tool repair operation rather than a crafting recipe.

Returns
True if this is a repair.

Definition at line 44 of file PrepareItemCraftEvent.java.

44  {
45  return repair;
46  }

The documentation for this class was generated from the following file: