mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-08 01:17:47 +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();
|
@NotNull Collection<Player> getPlayers();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Broadcast a ServerPacket to all players of this audience
|
||||||
|
* @param packet the packet to broadcast
|
||||||
|
*/
|
||||||
default void sendGroupedPacket(ServerPacket packet) {
|
default void sendGroupedPacket(ServerPacket packet) {
|
||||||
PacketUtils.sendGroupedPacket(this.getPlayers(), packet);
|
PacketUtils.sendGroupedPacket(this.getPlayers(), packet);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user