Class PacketEvent
java.lang.Object
com.github.retrooper.packetevents.event.PacketEvent
- All Implemented Interfaces:
CallableEvent
- Direct Known Subclasses:
ProtocolPacketEvent,UserConnectEvent,UserDisconnectEvent,UserLoginEvent
An event in both of PacketEvents' event systems.
- Since:
- 1.2.6
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcallPacketEventExternal(PacketListenerCommon listener) longTimestamp of when the PacketEvent was created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.github.retrooper.packetevents.event.CallableEvent
call
-
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
-