public class PacketEvent extends AbstractEvent<PacketEvent.Type,OutboundPacket>
Modifier and Type | Class and Description |
---|---|
static class |
PacketEvent.Type
Type of packet events.
|
Constructor and Description |
---|
PacketEvent(PacketEvent.Type type,
OutboundPacket packet)
Creates an event of the given type for the specified packet.
|
PacketEvent(PacketEvent.Type type,
OutboundPacket packet,
long time)
Creates an event of the given type for the specified packet at the given
time.
|
subject, time, toString, type
public PacketEvent(PacketEvent.Type type, OutboundPacket packet)
type
- the type of the eventpacket
- the packet the event is aboutpublic PacketEvent(PacketEvent.Type type, OutboundPacket packet, long time)
type
- the type of the eventpacket
- the packet the event is abouttime
- the time of the event