Package io.github.archipelagomw.bounce
Class DeathLinkHandler
java.lang.Object
io.github.archipelagomw.bounce.DeathLinkHandler
- All Implemented Interfaces:
BouncedPacketHandler
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancanHandle(BouncedPacket packet) Whether this BouncedPacketHandler can handle the provided packet.voidhandle(BouncedPacket packet) voidsendDeathLink(String source, String cause)
-
Field Details
-
DEATHLINK_TAG
- See Also:
-
-
Constructor Details
-
DeathLinkHandler
-
-
Method Details
-
canHandle
Description copied from interface:BouncedPacketHandlerWhether this BouncedPacketHandler can handle the provided packet. If it can, no other packet handler will be called, and theBouncedEventwill not be emitted.- Specified by:
canHandlein interfaceBouncedPacketHandler- Parameters:
packet- The packet to check- Returns:
- true if this handler should process the packet
-
handle
Description copied from interface:BouncedPacketHandler- Specified by:
handlein interfaceBouncedPacketHandler- Parameters:
packet- The BouncedPacket.
-
sendDeathLink
-