Class PacketEvent

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  PacketEvent.Type
      Type of packet events.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • PacketEvent

        public PacketEvent​(PacketEvent.Type type,
                           OutboundPacket packet)
        Creates an event of the given type for the specified packet.
        Parameters:
        type - the type of the event
        packet - the packet the event is about
      • PacketEvent

        public PacketEvent​(PacketEvent.Type type,
                           OutboundPacket packet,
                           long time)
        Creates an event of the given type for the specified packet at the given time.
        Parameters:
        type - the type of the event
        packet - the packet the event is about
        time - the time of the event