Package org.bukkit.event.player
Class PlayerItemBreakEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerItemBreakEvent
public class PlayerItemBreakEvent extends PlayerEvent
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.
- 
Nested Class Summary
- 
Field Summary
- 
Constructor SummaryConstructors Constructor Description PlayerItemBreakEvent(Player player, ItemStack brokenItem)
- 
Method SummaryModifier and Type Method Description ItemStackgetBrokenItem()Gets the item that brokestatic HandlerListgetHandlerList()HandlerListgetHandlers()
- 
Constructor Details
- 
Method Details- 
getBrokenItemGets the item that broke- Returns:
- The broken item
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
 
-