Interface PacketHandler.Factory
- Enclosing interface:
PacketHandler
@Internal
public static interface PacketHandler.Factory
Factory contract for constructing PacketHandler instances. Implemented by the commons module.
- Since:
- 0.0.6
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Plugin provider, PacketHandler.Injector manipulator, PacketHandler.Priority priority) Constructs a PacketHandler backed by the given manipulator library.
-
Method Details
-
create
PacketHandler create(Plugin provider, PacketHandler.Injector manipulator, PacketHandler.Priority priority) Constructs a PacketHandler backed by the given manipulator library.- Parameters:
provider- The plugin providing this PacketHandlermanipulator- The packet manipulation library to usepriority- The priority of the packet listener- Returns:
- A new PacketHandler instance
- Throws:
MissingPacketManipulatorLibraryException- if the manipulator library is not installed
-