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).
After this event, the item's amount will be set to item amount - 1
and its durability will be reset to 0.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerItemBreakEvent(Player player, ItemStack brokenItem)
-
Method Summary
Modifier and Type Method Description ItemStack
getBrokenItem()
Gets the item that brokestatic HandlerList
getHandlerList()
HandlerList
getHandlers()
-
Constructor Details
-
Method Details
-
getBrokenItem
Gets the item that broke- Returns:
- The broken item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-