Class ItemActionEvent

  • All Implemented Interfaces:
    org.bukkit.event.Cancellable

    
    public final class ItemActionEvent
    extends CancellableEvent
                        

    物品动作触发事件, 将在确定不在冷却时间后, 准备检测物品消耗前触发.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HandlerList getHandlers()
      Player getPlayer() 获取持有物品的玩家
      ItemStack getItemStack() 获取触发动作的物品
      ItemInfo getItemInfo() 获取物品信息
      ItemActionType getType() 获取动作触发类型
      ActionTrigger getTrigger() 获取动作触发器
      static HandlerList getHandlerList()
      • Methods inherited from class org.bukkit.event.Event

        getEventName, getHandlers, isAsynchronous
      • Methods inherited from class pers.neige.neigeitems.event.CancellableEvent

        call, isCancelled, setCancelled
      • Methods inherited from class org.bukkit.event.Cancellable

        isCancelled
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait