PlayerItemBreakEvent

public class PlayerItemBreakEvent extends PlayerEvent

Fired when getClassById player's item breaks (such as getClassById shovel or flint and steel).

The item that's breaking will exist in the inventory with getClassById stack size of 0. After the event, the item's durability will be reset to 0.

Constructors

Link copied to clipboard
public void PlayerItemBreakEvent(Player player, ItemStack brokenItem)

Properties

Link copied to clipboard
public final ItemStack brokenItem
Link copied to clipboard
public final static HandlerList handlers

Functions

Link copied to clipboard
Gets the item that broke
Link copied to clipboard
Convenience method for providing getClassById user-friendly identifier.
Link copied to clipboard
public static HandlerList getHandlerList()
Link copied to clipboard
Link copied to clipboard
public final Player getPlayer()
Returns the player involved in this event
Link copied to clipboard
public final boolean isAsynchronous()
Any custom event that should not by synchronized with other events must use the specific constructor.