org.bukkit.event.inventory
Class CraftItemEvent

java.lang.Object
  extended by org.bukkit.event.Event
      extended by org.bukkit.event.inventory.InventoryEvent
          extended by org.bukkit.event.inventory.InventoryInteractEvent
              extended by org.bukkit.event.inventory.InventoryClickEvent
                  extended by org.bukkit.event.inventory.CraftItemEvent
All Implemented Interfaces:
Cancellable

public class CraftItemEvent
extends InventoryClickEvent

Called when the recipe of an Item is completed inside a crafting matrix.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
 
Field Summary
 
Fields inherited from class org.bukkit.event.inventory.InventoryEvent
transaction
 
Constructor Summary
CraftItemEvent(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, boolean right, boolean shift)
          Deprecated. 
CraftItemEvent(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action)
           
CraftItemEvent(Recipe recipe, InventoryView what, InventoryType.SlotType type, int slot, ClickType click, InventoryAction action, int key)
           
 
Method Summary
 CraftingInventory getInventory()
          Gets the primary Inventory involved in this transaction
 Recipe getRecipe()
           
 
Methods inherited from class org.bukkit.event.inventory.InventoryClickEvent
getAction, getClick, getCurrentItem, getCursor, getHandlerList, getHandlers, getHotbarButton, getRawSlot, getSlot, getSlotType, isLeftClick, isRightClick, isShiftClick, setCurrentItem, setCursor
 
Methods inherited from class org.bukkit.event.inventory.InventoryInteractEvent
getResult, getWhoClicked, isCancelled, setCancelled, setResult
 
Methods inherited from class org.bukkit.event.inventory.InventoryEvent
getView, getViewers
 
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CraftItemEvent

@Deprecated
public CraftItemEvent(Recipe recipe,
                                 InventoryView what,
                                 InventoryType.SlotType type,
                                 int slot,
                                 boolean right,
                                 boolean shift)
Deprecated. 


CraftItemEvent

public CraftItemEvent(Recipe recipe,
                      InventoryView what,
                      InventoryType.SlotType type,
                      int slot,
                      ClickType click,
                      InventoryAction action)

CraftItemEvent

public CraftItemEvent(Recipe recipe,
                      InventoryView what,
                      InventoryType.SlotType type,
                      int slot,
                      ClickType click,
                      InventoryAction action,
                      int key)
Method Detail

getRecipe

public Recipe getRecipe()
Returns:
A copy of the current recipe on the crafting matrix.

getInventory

public CraftingInventory getInventory()
Description copied from class: InventoryEvent
Gets the primary Inventory involved in this transaction

Overrides:
getInventory in class InventoryEvent
Returns:
The upper inventory.


Copyright © 2013. All Rights Reserved.