Interface PacketSendEvent

All Superinterfaces:
PacketEvent

public interface PacketSendEvent extends PacketEvent
Clientbound native packet event.
  • Method Details

    • afterWrite

      default void afterWrite(PacketSendCompletion completion)
      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:
      afterWrite in interface PacketEvent
      Parameters:
      completion - callback invoked exactly once