public class PlayerItemBreakEvent extends PlayerEvent
After this event, the item's amount will be set to item amount - 1
and its 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, waitgetPlayer@NotNull public ItemStack getBrokenItem()
@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
Copyright © 2021. All rights reserved.