PlasmoVoice
jvm
PlasmoVoice
/
su.plo.voice.api.server.connection
/
UdpConnectionManager
Udp
Connection
Manager
interface
UdpConnectionManager
<
P
:
VoicePlayer
?
,
C
:
UdpConnection
?
>
:
PacketManager
<
T
,
P
>
Members
Functions
broadcast
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.
get
Connection
By
Player
Id
Link copied to clipboard
abstract
fun
getConnectionByPlayerId
(
@
NotNull
playerId
:
@
NotNull
UUID
)
:
Optional
<
C
>
Gets the UDP connection by player unique identifier.
get
Connection
By
Secret
Link copied to clipboard
abstract
fun
getConnectionBySecret
(
@
NotNull
secret
:
@
NotNull
UUID
)
:
Optional
<
C
>
Gets the UDP connection by secret.
get
Connections
Link copied to clipboard
abstract
fun
getConnections
(
)
:
Collection
<
C
>
Gets the collection of all UDP connections.