Interface ISendable
- All Known Implementing Classes:
PacketPlayOutAdvancementsWrapper
,PacketPlayOutSelectAdvancementTabWrapper
public interface ISendable
Interface for sending packets to players.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
sendTo
(@NotNull Collection<Player> players) Send the packet to the specified players.void
Send the packet to the specified player.default void
Send the packet to the specified players.
-
Method Details
-
sendTo
Send the packet to the specified player.- Parameters:
player
- The player who will receive the packet.- Throws:
IllegalArgumentException
- If the specified player isnull
.
-
sendTo
Send the packet to the specified players.- Parameters:
players
- The players who will receive the packet. Eventuallynull
values are ignored.- Throws:
IllegalArgumentException
- If the players array isnull
.
-
sendTo
Send the packet to the specified players.- Parameters:
players
- The players who will receive the packet. Eventuallynull
values are ignored.- Throws:
IllegalArgumentException
- If the players collection isnull
.
-