Package pers.neige.neigeitems.event
Class MythicDropEvent.Drop
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public class MythicDropEvent.Drop extends CancellableEvent
MM怪物掉落NI装备事件, MM怪物死亡时异步触发. 生成物品后, 准备掉落前触发.
-
-
Field Summary
Fields Modifier and Type Field Description public final static HandlerList
handlers
public final String
internalName
public final LivingEntity
entity
public final Player
player
public List<ItemStack>
dropItems
public List<ItemStack>
fishDropItems
public String
offsetXString
public String
offsetYString
public String
angleType
public final static HandlerList
handlers
private boolean
cancelled
-
Method Summary
Modifier and Type Method Description HandlerList
getHandlers()
String
getInternalName()
获取怪物ID LivingEntity
getEntity()
获取怪物实体 Player
getPlayer()
获取怪物击杀者 List<ItemStack>
getDropItems()
获取待掉落物品 void
setDropItems(@NonNull() List<ItemStack> dropItems)
设置待掉落物品 List<ItemStack>
getFishDropItems()
获取拟渔获掉落物品(不存在击杀者时并入dropItems) void
setFishDropItems(@Nullable() List<ItemStack> fishDropItems)
设置拟渔获掉落物品 String
getOffsetXString()
获取多彩掉落横向偏移 void
setOffsetXString(@Nullable() String offsetXString)
设置多彩掉落横向偏移 String
getOffsetYString()
获取多彩掉落纵向偏移 void
setOffsetYString(@Nullable() String offsetYString)
设置多彩掉落纵向偏移 String
getAngleType()
获取多彩掉落喷射模式 void
setAngleType(@Nullable() String angleType)
设置多彩掉落喷射模式 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
-
MythicDropEvent.Drop
MythicDropEvent.Drop(String internalName, LivingEntity entity, Player player, List<ItemStack> dropItems, List<ItemStack> fishDropItems, String offsetXString, String offsetYString, String angleType)
- Parameters:
internalName
- 怪物IDentity
- 怪物实体player
- 怪物击杀者dropItems
- 待掉落物品fishDropItems
- 拟渔获掉落物品(不存在击杀者时并入dropItems)offsetXString
- 多彩掉落横向偏移offsetYString
- 多彩掉落纵向偏移angleType
- 多彩掉落喷射模式
-
-
Method Detail
-
getHandlers
@NonNull() HandlerList getHandlers()
-
getInternalName
@NonNull() String getInternalName()
获取怪物ID
-
getEntity
@NonNull() LivingEntity getEntity()
获取怪物实体
-
getPlayer
@Nullable() Player getPlayer()
获取怪物击杀者
-
getDropItems
@NonNull() List<ItemStack> getDropItems()
获取待掉落物品
-
setDropItems
void setDropItems(@NonNull() List<ItemStack> dropItems)
设置待掉落物品
- Parameters:
dropItems
- 待掉落物品
-
getFishDropItems
@Nullable() List<ItemStack> getFishDropItems()
获取拟渔获掉落物品(不存在击杀者时并入dropItems)
-
setFishDropItems
void setFishDropItems(@Nullable() List<ItemStack> fishDropItems)
设置拟渔获掉落物品
- Parameters:
fishDropItems
- 拟渔获掉落物品
-
getOffsetXString
@Nullable() String getOffsetXString()
获取多彩掉落横向偏移
-
setOffsetXString
void setOffsetXString(@Nullable() String offsetXString)
设置多彩掉落横向偏移
- Parameters:
offsetXString
- 多彩掉落横向偏移
-
getOffsetYString
@Nullable() String getOffsetYString()
获取多彩掉落纵向偏移
-
setOffsetYString
void setOffsetYString(@Nullable() String offsetYString)
设置多彩掉落纵向偏移
- Parameters:
offsetYString
- 多彩掉落纵向偏移
-
getAngleType
@Nullable() String getAngleType()
获取多彩掉落喷射模式
-
setAngleType
void setAngleType(@Nullable() String angleType)
设置多彩掉落喷射模式
- Parameters:
angleType
- 多彩掉落喷射模式
-
getHandlerList
@NonNull() static HandlerList getHandlerList()
-
-
-
-