Class PacketOutputAdapter

java.lang.Object
com.comphenix.protocol.events.PacketOutputAdapter
All Implemented Interfaces:
PacketOutputHandler

public abstract class PacketOutputAdapter extends Object implements PacketOutputHandler
Represents an adapter version of the output handler interface.
  • Constructor Details

    • PacketOutputAdapter

      public PacketOutputAdapter(org.bukkit.plugin.Plugin plugin, ListenerPriority priority)
      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: PacketOutputHandler
      The plugin that owns this output handler.
      Specified by:
      getPlugin in interface PacketOutputHandler
      Returns:
      The owner plugin.
    • getPriority

      public ListenerPriority getPriority()
      Description copied from interface: PacketOutputHandler
      Retrieve the priority that decides the order each network handler is allowed to manipulate the output buffer.

      Higher priority is executed before lower.

      Specified by:
      getPriority in interface PacketOutputHandler
      Returns:
      The handler priority.