Package com.comphenix.protocol.injector
Class NetworkProcessor
java.lang.Object
com.comphenix.protocol.injector.NetworkProcessor
Represents a processor for network markers.
- Author:
- Kristian
-
Constructor Summary
ConstructorsConstructorDescriptionNetworkProcessor(ErrorReporter reporter)Construct a new network processor. -
Method Summary
Modifier and TypeMethodDescriptionvoidinvokePostEvent(PacketEvent event, NetworkMarker marker)Invoke the post listeners and packet transmission, if any.byte[]processOutput(PacketEvent event, NetworkMarker marker, byte[] input)Process the serialized packet byte array with the given network marker.
-
Constructor Details
-
NetworkProcessor
Construct a new network processor.- Parameters:
reporter- - the reporter.
-
-
Method Details
-
processOutput
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
Invoke the post listeners and packet transmission, if any.- Parameters:
event- - PacketEventmarker- - the network marker, or NULL.
-