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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
callPacketEventExternal
(PacketListenerCommon listener) long
Timestamp of when the PacketEvent was created.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
-