public interface PacketOutputHandler
Modifier and Type | Method and Description |
---|---|
org.bukkit.plugin.Plugin |
getPlugin()
The plugin that owns this output handler.
|
ListenerPriority |
getPriority()
Retrieve the priority that decides the order each network handler is allowed to manipulate the output buffer.
|
byte[] |
handle(PacketEvent event,
byte[] buffer)
Invoked when a given packet is to be written to the output stream.
|
ListenerPriority getPriority()
Higher priority is executed before lower.
org.bukkit.plugin.Plugin getPlugin()
byte[] handle(PacketEvent event, byte[] buffer)
Note that the buffer is initially filled with the output from the default write method.
In Minecraft 1.6.4, the header is always excluded, whereas it MUST be included in Minecraft 1.7.2. Call
NetworkMarker.requireOutputHeader()
to determine this.
event
- - the packet that will be outputted.buffer
- - the data that is currently scheduled to be outputted.