Interface VeilPacketManager.PacketSink

All Known Implementing Classes:
ClientPacketSink
Enclosing interface:
VeilPacketManager
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface VeilPacketManager.PacketSink
Sends packets to players and automatically bundles payloads together.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    sendPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload... payloads)
    Sends one or more payloads in a single packet.
    void
    sendPacket(net.minecraft.network.protocol.Packet<?> packet)
    Sends a single packet.
  • Method Details

    • sendPacket

      default void sendPacket(net.minecraft.network.protocol.common.custom.CustomPacketPayload... payloads)
      Sends one or more payloads in a single packet.
      Parameters:
      payloads - All packets to send
    • sendPacket

      void sendPacket(net.minecraft.network.protocol.Packet<?> packet)
      Sends a single packet.
      Parameters:
      packet - the packet to send