All Known Implementing Classes:
PacketPlayOutAdvancementsWrapper, PacketPlayOutSelectAdvancementTabWrapper

public interface ISendable
Interface for sending packets to players.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Send the packet to the specified players.
    void
    Send the packet to the specified player.
    default void
    sendTo(@NotNull Player... players)
    Send the packet to the specified players.
  • Method Details

    • sendTo

      void sendTo(@NotNull @NotNull Player player)
      Send the packet to the specified player.
      Parameters:
      player - The player who will receive the packet.
      Throws:
      IllegalArgumentException - If the specified player is null.
    • sendTo

      default void sendTo(@NotNull @NotNull Player... players)
      Send the packet to the specified players.
      Parameters:
      players - The players who will receive the packet. Eventually null values are ignored.
      Throws:
      IllegalArgumentException - If the players array is null.
    • sendTo

      default void sendTo(@NotNull @NotNull Collection<Player> players)
      Send the packet to the specified players.
      Parameters:
      players - The players who will receive the packet. Eventually null values are ignored.
      Throws:
      IllegalArgumentException - If the players collection is null.