Package org.bukkit.event.player
Class PlayerItemBreakEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerItemBreakEvent
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
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Field Summary
Fields inherited from class org.bukkit.event.player.PlayerEvent
player
-
Constructor Summary
-
Method Summary
Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerItemBreakEvent
-
-
Method Details
-
getBrokenItem
Gets the item that broke- Returns:
- The broken item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-