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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PlayerItemBreakEvent
public PlayerItemBreakEvent(Player player,
ItemStack brokenItem)
getBrokenItem
public ItemStack getBrokenItem()
- Gets the item that broke
- Returns:
- The broken item
getHandlers
public HandlerList getHandlers()
- Specified by:
getHandlers
in class Event
getHandlerList
public static HandlerList getHandlerList()
Copyright © 2013. All Rights Reserved.