Package devs.beer.nativepackets.api
Interface PacketSendEvent
- All Superinterfaces:
PacketEvent
Clientbound native packet event.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidafterWrite(PacketSendCompletion completion) Registers an owner-scoped callback for the actual outer channel write.Methods inherited from interface devs.beer.nativepackets.api.PacketEvent
cancel, connection, direction, isCancelled, isViewCreated, nativePacket, phase, replaceNativePacket, setCancelled, sync, syncAt, syncGlobal, type, view
-
Method Details
-
afterWrite
Registers an owner-scoped callback for the actual outer channel write.Cancellation completes with
PacketSendOutcome.CANCELLED; replacement follows the replacement actually written. Nested bundle-child dispatch is not an independent write and therefore does not support completion registration.- Specified by:
afterWritein interfacePacketEvent- Parameters:
completion- callback invoked exactly once
-