Class ItemPackDropEvent

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

    
    public final class ItemPackDropEvent
    extends CancellableEvent
                        

    物品包掉落事件, /ni dropPack指令触发.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemPackDropEvent(String id, List<ItemStack> itemStacks, Location location, OfflinePlayer parser)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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
    • Constructor Detail

      • ItemPackDropEvent

        ItemPackDropEvent(String id, List<ItemStack> itemStacks, Location location, OfflinePlayer parser)
        Parameters:
        id - 物品ID
        itemStacks - 待掉落物品
        location - 掉落位置
        parser - 物品解析对象
    • Method Detail

      • getParser

        @Nullable() OfflinePlayer getParser()

        获取物品解析对象

      • setItemStacks

         void setItemStacks(@NonNull() List<ItemStack> itemStacks)

        设置待掉落物品

        Parameters:
        itemStacks - 待掉落物品
      • getLocation

        @NonNull() Location getLocation()

        获取掉落位置

      • setLocation

         void setLocation(@NonNull() Location location)

        设置掉落位置

        Parameters:
        location - 掉落位置