Package pers.neige.neigeitems.event
Class MythicEquipEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class MythicEquipEvent extends CancellableEvent
MM怪物通过NI设置穿戴装备事件, MM怪物生成时触发
-
-
Constructor Summary
Constructors Constructor Description MythicEquipEvent(LivingEntity entity, String internalName, String slot, ItemStack itemStack)
-
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
-
-
Method Detail
-
getHandlers
@NonNull() HandlerList getHandlers()
-
getEntity
@NonNull() LivingEntity getEntity()
获取怪物实体
-
getInternalName
@NonNull() String getInternalName()
获取怪物ID
-
getItemStack
@NonNull() ItemStack getItemStack()
获取待掉落物品
-
setItemStack
void setItemStack(@NonNull() ItemStack itemStack)
设置待掉落物品
- Parameters:
itemStack
- 待掉落物品
-
getHandlerList
@NonNull() static HandlerList getHandlerList()
-
-
-
-