Package io.github.archipelagomw.bounce
Class BouncedManager
java.lang.Object
io.github.archipelagomw.bounce.BouncedManager
A handler for managing protocol specific bounce packets. If a handler registered with the BouncedManager
can handle a packet, then the BouncedPacket does not get propagated as
a
BouncedEvent
This class is intended to help create protocols over the Bounce Packet.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddHandler(BouncedPacketHandler handler) Adds a handler to intercept bounce packets withbooleanhandle(BouncedPacket packet) voidremoveHandler(BouncedPacketHandler handler) Removes a handler from intercepting packets with.
-
Constructor Details
-
BouncedManager
public BouncedManager()
-
-
Method Details
-
addHandler
Adds a handler to intercept bounce packets with- Parameters:
handler- The handler to register
-
removeHandler
Removes a handler from intercepting packets with.- Parameters:
handler- the handler to remove
-
handle
-