Add Javadoc

This commit is contained in:
BuildTools 2021-06-25 20:34:19 +08:00
parent d84964d55b
commit 07a2b37f35

View File

@ -45,6 +45,10 @@ public interface PacketGroupingAudience extends ForwardingAudience {
*/
@NotNull Collection<Player> getPlayers();
/**
* Broadcast a ServerPacket to all players of this audience
* @param packet the packet to broadcast
*/
default void sendGroupedPacket(ServerPacket packet) {
PacketUtils.sendGroupedPacket(this.getPlayers(), packet);
}