Package pers.neige.neigeitems.event
Class ItemPackDropEvent
-
- All Implemented Interfaces:
-
org.bukkit.event.Cancellable
public final class ItemPackDropEvent extends CancellableEvent
物品包掉落事件, /ni dropPack指令触发.
-
-
Constructor Summary
Constructors Constructor Description ItemPackDropEvent(String id, List<ItemStack> itemStacks, Location location, OfflinePlayer parser)
-
Method Summary
Modifier and Type Method Description HandlerList
getHandlers()
String
getId()
获取物品ID OfflinePlayer
getParser()
获取物品解析对象 List<ItemStack>
getItemStacks()
获取待掉落物品 void
setItemStacks(@NonNull() List<ItemStack> itemStacks)
设置待掉落物品 Location
getLocation()
获取掉落位置 void
setLocation(@NonNull() Location location)
设置掉落位置 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()
-
getParser
@Nullable() OfflinePlayer getParser()
获取物品解析对象
-
getItemStacks
@NonNull() List<ItemStack> getItemStacks()
获取待掉落物品
-
setItemStacks
void setItemStacks(@NonNull() List<ItemStack> itemStacks)
设置待掉落物品
- Parameters:
itemStacks
- 待掉落物品
-
getLocation
@NonNull() Location getLocation()
获取掉落位置
-
setLocation
void setLocation(@NonNull() Location location)
设置掉落位置
- Parameters:
location
- 掉落位置
-
getHandlerList
@NonNull() static HandlerList getHandlerList()
-
-
-
-