org.bukkit.event.inventory
Class PrepareItemCraftEvent
java.lang.Object
   org.bukkit.event.Event
org.bukkit.event.Event
       org.bukkit.event.inventory.InventoryEvent
org.bukkit.event.inventory.InventoryEvent
           org.bukkit.event.inventory.PrepareItemCraftEvent
org.bukkit.event.inventory.PrepareItemCraftEvent
- public class PrepareItemCraftEvent 
- extends InventoryEvent
 
 
 
 
 
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
PrepareItemCraftEvent
public PrepareItemCraftEvent(CraftingInventory what,
                             InventoryView view,
                             boolean isRepair)
getRecipe
public Recipe 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.
 
getInventory
public CraftingInventory getInventory()
- Description copied from class: InventoryEvent
- Gets the primary Inventory involved in this transaction
 
- 
- Overrides:
- getInventoryin class- InventoryEvent
 
- 
- Returns:
- The crafting inventory on which the recipe was formed.
 
isRepair
public 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
public HandlerList getHandlers()
- 
- Overrides:
- getHandlersin class- InventoryEvent
 
- 
 
getHandlerList
public static HandlerList getHandlerList()
- 
 
Copyright © 2013. All Rights Reserved.