Interface IServerGamePacketListenerExtension

All Superinterfaces:
ICommonPacketListener, IServerCommonPacketListenerExtension, PacketListener
All Known Subinterfaces:
ServerGamePacketListener
All Known Implementing Classes:
FakePlayer.FakePlayerNetHandler, ServerGamePacketListenerImpl

public interface IServerGamePacketListenerExtension extends IServerCommonPacketListenerExtension
Extension class for ServerGamePacketListener
  • Method Details

    • self

      private ServerGamePacketListener self()
      Returns the listener this extension is attached to.
      Returns:
      the listener this extension is attached to
    • sendBundled

      default void sendBundled(CustomPacketPayload... payloads)
      Sends all given payloads as a bundle to the client.
      Parameters:
      payloads - the payloads to send
    • sendBundled

      default void sendBundled(Iterable<CustomPacketPayload> payloads)
      Sends all given payloads as a bundle to the client.
      Parameters:
      payloads - the payloads to send