mirror of
https://github.com/Minestom/Minestom.git
synced 2024-11-14 22:56:31 +01:00
Add Javadoc
This commit is contained in:
parent
d84964d55b
commit
07a2b37f35
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user