Class ItemPacketEvent

  • All Implemented Interfaces:

    
    public final class ItemPacketEvent
    extends BasicEvent
                        

    服务端向客户端发送物品数据包时触发.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static HandlerList handlers
      public final Player player
      public final ItemStack itemStack
      public final static HandlerList handlers
    • Constructor Summary

      Constructors 
      Constructor Description
      ItemPacketEvent(Player player, ItemStack itemStack)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      HandlerList getHandlers()
      Player getPlayer() 获取接收数据包的玩家
      ItemStack getItemStack() 获取发送的物品
      static HandlerList getHandlerList()
      • Methods inherited from class org.bukkit.event.Event

        getEventName, getHandlers, isAsynchronous
      • Methods inherited from class pers.neige.neigeitems.event.BasicEvent

        call
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ItemPacketEvent

        ItemPacketEvent(Player player, ItemStack itemStack)
        Parameters:
        player - 接收数据包的玩家
        itemStack - 发送的物品
    • Method Detail

      • getPlayer

        @NonNull() Player getPlayer()

        获取接收数据包的玩家

      • getItemStack

        @NonNull() ItemStack getItemStack()

        获取发送的物品