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 and Description |
|---|
PlayerItemBreakEvent(@NotNull Player player,
@NotNull ItemStack brokenItem) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull ItemStack |
getBrokenItem()
Gets the item that broke
|
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
getPlayercallEvent, getEventName, isAsynchronous@NotNull public @NotNull ItemStack getBrokenItem()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers in class Event@NotNull public static @NotNull HandlerList getHandlerList()
Copyright © 2021. All rights reserved.