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

Public Member Functions

 ItemDespawnEvent (final Item despawnee, final Location loc)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Item getEntity ()
 
Location getLocation ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.entity.EntityEvent
 EntityEvent (final Entity what)
 
Entity getEntity ()
 
EntityType getEntityType ()
 
- 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 ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.entity.EntityEvent
Entity entity
 

Detailed Description

This event is called when a org.bukkit.entity.Item is removed from the world because it has existed for 5 minutes.

Cancelling the event results in the item being allowed to exist for 5 more minutes. This behavior is not guaranteed and may change in future versions.

Definition at line 15 of file ItemDespawnEvent.java.

Member Function Documentation

Location org.bukkit.event.entity.ItemDespawnEvent.getLocation ( )

Gets the location at which the item is despawning.

Returns
The location at which the item is despawning

Definition at line 43 of file ItemDespawnEvent.java.

43  {
44  return location;
45  }
boolean org.bukkit.event.entity.ItemDespawnEvent.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 25 of file ItemDespawnEvent.java.

25  {
26  return canceled;
27  }
void org.bukkit.event.entity.ItemDespawnEvent.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 29 of file ItemDespawnEvent.java.

29  {
30  canceled = cancel;
31  }

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