Bukkit  1.4.7-R1.0
 All Classes Namespaces Files Functions Variables Enumerator Pages
org.bukkit.event.inventory.PrepareItemCraftEvent Class Reference
+ Inheritance diagram for org.bukkit.event.inventory.PrepareItemCraftEvent:
+ Collaboration diagram for org.bukkit.event.inventory.PrepareItemCraftEvent:

Public Member Functions

 PrepareItemCraftEvent (CraftingInventory what, InventoryView view, boolean isRepair)
 
Recipe getRecipe ()
 Get the recipe that has been formed.
 
CraftingInventory getInventory ()
 
boolean isRepair ()
 Check if this event was triggered by a tool repair operation rather than a crafting recipe.
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.inventory.InventoryEvent
 InventoryEvent (InventoryView transaction)
 
Inventory getInventory ()
 Gets the primary Inventory involved in this transaction.
 
List< HumanEntitygetViewers ()
 Gets the list of players viewing the primary (upper) inventory involved in this event.
 
InventoryView getView ()
 Gets the view object itself.
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 The default constructor is defined for cleaner code.
 
 Event (boolean isAsync)
 This constructor is used to explicitly declare an event as synchronous or asynchronous.
 
String getEventName ()
 
final boolean isAsynchronous ()
 Any custom event that should not by synchronized with other events must use the specific constructor.
 

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.

Constructor & Destructor Documentation

org.bukkit.event.inventory.PrepareItemCraftEvent.PrepareItemCraftEvent ( CraftingInventory  what,
InventoryView  view,
boolean  isRepair 
)

Member Function Documentation

static HandlerList org.bukkit.event.inventory.PrepareItemCraftEvent.getHandlerList ( )
static

Definition at line 49 of file PrepareItemCraftEvent.java.

HandlerList org.bukkit.event.inventory.PrepareItemCraftEvent.getHandlers ( )
virtual

Reimplemented from org.bukkit.event.inventory.InventoryEvent.

Definition at line 45 of file PrepareItemCraftEvent.java.

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

Definition at line 32 of file PrepareItemCraftEvent.java.

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 24 of file PrepareItemCraftEvent.java.

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

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 40 of file PrepareItemCraftEvent.java.

Referenced by org.bukkit.event.inventory.PrepareItemCraftEvent.PrepareItemCraftEvent().


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