public class PlayerItemBreakEvent extends PlayerEvent
当物品耐久值为0时,将触发此事件.事件结束后,物品耐久值将复位至0.
Event.Result
player
构造器和说明 |
---|
PlayerItemBreakEvent(Player player,
ItemStack brokenItem) |
限定符和类型 | 方法和说明 |
---|---|
ItemStack |
getBrokenItem()
获得因耐久值不足将要被销毁的物品.
|
static HandlerList |
getHandlerList() |
HandlerList |
getHandlers() |
getPlayer
getEventName, isAsynchronous
public ItemStack getBrokenItem()
原文:Gets the item that broke
public HandlerList getHandlers()
getHandlers
在类中 Event
public static HandlerList getHandlerList()