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

Public Member Functions

 InventoryPickupItemEvent (final Inventory inventory, final Item item)
 
Inventory getInventory ()
 
Item getItem ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
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 ()
 

Detailed Description

Called when a hopper or hopper minecart picks up a dropped item.

Definition at line 12 of file InventoryPickupItemEvent.java.

Member Function Documentation

Inventory org.bukkit.event.inventory.InventoryPickupItemEvent.getInventory ( )

Gets the Inventory that picked up the item

Returns
Inventory

Definition at line 29 of file InventoryPickupItemEvent.java.

29  {
30  return inventory;
31  }
Item org.bukkit.event.inventory.InventoryPickupItemEvent.getItem ( )

Gets the Item entity that was picked up

Returns
Item

Definition at line 38 of file InventoryPickupItemEvent.java.

38  {
39  return item;
40  }
boolean org.bukkit.event.inventory.InventoryPickupItemEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 42 of file InventoryPickupItemEvent.java.

42  {
43  return cancelled;
44  }
void org.bukkit.event.inventory.InventoryPickupItemEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 46 of file InventoryPickupItemEvent.java.

46  {
47  this.cancelled = cancel;
48  }

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