Class PacketEvent

java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
All Implemented Interfaces:
CallableEvent
Direct Known Subclasses:
ProtocolPacketEvent, UserConnectEvent, UserDisconnectEvent, UserLoginEvent

public abstract class PacketEvent extends Object implements CallableEvent
An event in both of PacketEvents' event systems.
Since:
1.2.6
  • Constructor Details

    • PacketEvent

      public PacketEvent()
  • Method Details

    • getTimestamp

      public long getTimestamp()
      Timestamp of when the PacketEvent was created. Basically timestamp of the packet.
      Returns:
      Packet timestamp in milliseconds.
    • callPacketEventExternal

      public void callPacketEventExternal(PacketListenerCommon listener)