Class NetworkProcessor

java.lang.Object
com.comphenix.protocol.injector.NetworkProcessor

public class NetworkProcessor extends Object
Represents a processor for network markers.
Author:
Kristian
  • Constructor Details

    • NetworkProcessor

      public NetworkProcessor(ErrorReporter reporter)
      Construct a new network processor.
      Parameters:
      reporter - - the reporter.
  • Method Details

    • processOutput

      public byte[] processOutput(PacketEvent event, NetworkMarker marker, byte[] input)
      Process the serialized packet byte array with the given network marker.
      Parameters:
      event - - current packet event.
      marker - - the network marker.
      input - - the input array.
      Returns:
      The output array.
    • invokePostEvent

      public void invokePostEvent(PacketEvent event, NetworkMarker marker)
      Invoke the post listeners and packet transmission, if any.
      Parameters:
      event - - PacketEvent
      marker - - the network marker, or NULL.