UdpConnectionManager

Functions

Link copied to clipboard
open fun broadcast(@NotNull packet: @NotNull Packet<T>)
abstract fun broadcast(@NotNull packet: @NotNull Packet<T>, @Nullable filter: Predicate<P>)
Broadcasts a packet to all players with voice chat installed.
Link copied to clipboard
abstract fun getConnectionByPlayerId(@NotNull playerId: @NotNull UUID): Optional<C>
Gets the UDP connection by player unique identifier.
Link copied to clipboard
abstract fun getConnectionBySecret(@NotNull secret: @NotNull UUID): Optional<C>
Gets the UDP connection by secret.
Link copied to clipboard
abstract fun getConnections(): Collection<C>
Gets the collection of all UDP connections.