Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerItemBreakEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerItemBreakEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Event

Public Member Functions

 PlayerItemBreakEvent (final Player player, final ItemStack brokenItem)
 
ItemStack getBrokenItem ()
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
 
final Player getPlayer ()
 
- 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.player.PlayerEvent
Player player
 

Detailed Description

Fired when a player's item breaks (such as a shovel or flint and steel).

The item that's breaking will exist in the inventory with a stack size of 0. After the event, the item's durability will be reset to 0.

Definition at line 13 of file PlayerItemBreakEvent.java.

Member Function Documentation

ItemStack org.bukkit.event.player.PlayerItemBreakEvent.getBrokenItem ( )

Gets the item that broke

Returns
The broken item

Definition at line 27 of file PlayerItemBreakEvent.java.

27  {
28  return brokenItem;
29  }

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