Package com.comphenix.protocol.events
Class PacketOutputAdapter
java.lang.Object
com.comphenix.protocol.events.PacketOutputAdapter
- All Implemented Interfaces:
PacketOutputHandler
Represents an adapter version of the output handler interface.
-
Constructor Summary
ConstructorsConstructorDescriptionPacketOutputAdapter(org.bukkit.plugin.Plugin plugin, ListenerPriority priority) Construct a new packet output adapter with the given values. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.plugin.PluginThe plugin that owns this output handler.Retrieve the priority that decides the order each network handler is allowed to manipulate the output buffer.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.comphenix.protocol.events.PacketOutputHandler
handle
-
Constructor Details
-
PacketOutputAdapter
Construct a new packet output adapter with the given values.- Parameters:
plugin- - the owner plugin.priority- - the output handler priority.
-
-
Method Details
-
getPlugin
public org.bukkit.plugin.Plugin getPlugin()Description copied from interface:PacketOutputHandlerThe plugin that owns this output handler.- Specified by:
getPluginin interfacePacketOutputHandler- Returns:
- The owner plugin.
-
getPriority
Description copied from interface:PacketOutputHandlerRetrieve the priority that decides the order each network handler is allowed to manipulate the output buffer.Higher priority is executed before lower.
- Specified by:
getPriorityin interfacePacketOutputHandler- Returns:
- The handler priority.
-