Class PacketServerboundEvent

java.lang.Object
org.bukkit.event.Event
com.shanebeestudios.coreapi.event.PacketEvent
com.shanebeestudios.coreapi.event.PacketServerboundEvent
All Implemented Interfaces:
Cancellable

public class PacketServerboundEvent extends PacketEvent
Called when a packet is received from a client

To listen to this event you will first need to execute PlayerPacketListener.registerListener(Plugin)

  • Method Details

    • getHandlers

      @NotNull public @NotNull HandlerList getHandlers()
      Get the handler list
      Specified by:
      getHandlers in class Event
      Returns:
      Handler list
    • getHandlerList

      public static HandlerList getHandlerList()
      Get the handler list
      Returns:
      Handler list