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(@NotNull Player player,
@NotNull ItemStack brokenItem) |
| Modifier and Type | Method | Description |
|---|---|---|
@NotNull ItemStack |
getBrokenItem() |
Gets the item that broke
|
static @NotNull HandlerList |
getHandlerList() |
|
@NotNull HandlerList |
getHandlers() |
getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@NotNull public @NotNull ItemStack getBrokenItem()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2020. All rights reserved.