public class PlayerItemBreakEvent extends PlayerEvent
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.
Event.Resultplayer| Constructor | Description | 
|---|---|
| PlayerItemBreakEvent(Player player,
                    ItemStack brokenItem) | 
| Modifier and Type | Method | Description | 
|---|---|---|
| ItemStack | getBrokenItem() | Gets the item that broke | 
| static HandlerList | getHandlerList() | |
| HandlerList | getHandlers() | 
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayerpublic ItemStack getBrokenItem()
public HandlerList getHandlers()
getHandlers in class Eventpublic static HandlerList getHandlerList()
Copyright © 2018. All rights reserved.