Class PacketEvent

    • 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