Class MythicEquipEvent

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

    
    public final class MythicEquipEvent
    extends CancellableEvent
                        

    MM怪物通过NI设置穿戴装备事件, MM怪物生成时触发

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      MythicEquipEvent(LivingEntity entity, String internalName, String slot, ItemStack itemStack)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HandlerList getHandlers()
      LivingEntity getEntity() 获取怪物实体
      String getInternalName() 获取怪物ID
      String getSlot() 获取槽位(helmet/chestplate/leggings/boots/mainhand/offhand)
      ItemStack getItemStack() 获取待掉落物品
      void setItemStack(@NonNull() ItemStack itemStack) 设置待掉落物品
      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
    • Constructor Detail

      • MythicEquipEvent

        MythicEquipEvent(LivingEntity entity, String internalName, String slot, ItemStack itemStack)
        Parameters:
        entity - 怪物实体
        internalName - 怪物ID
        slot - 槽位(helmet/chestplate/leggings/boots/mainhand/offhand)
        itemStack - 待掉落物品
    • Method Detail

      • getEntity

        @NonNull() LivingEntity getEntity()

        获取怪物实体

      • getSlot

        @NonNull() String getSlot()

        获取槽位(helmet/chestplate/leggings/boots/mainhand/offhand)

      • getItemStack

        @NonNull() ItemStack getItemStack()

        获取待掉落物品

      • setItemStack

         void setItemStack(@NonNull() ItemStack itemStack)

        设置待掉落物品

        Parameters:
        itemStack - 待掉落物品