UdpProxyConnectionManager

Manages UDP proxy connections.

Functions

Link copied to clipboard
abstract fun addConnection(@NotNull connection: @NotNull UdpProxyConnection)
Adds a UDP proxy connection.
Link copied to clipboard
abstract fun broadcast(p: @NotNull Packet<T>, p1: Predicate<P>)
Link copied to clipboard
abstract fun clearConnections()
Clears all UDP proxy connections.
Link copied to clipboard
abstract fun getConnectionByAnySecret(@NotNull anySecret: @NotNull UUID): Optional<UdpProxyConnection>
Retrieves a UDP proxy connection by any of the player's secrets.
Link copied to clipboard
abstract fun getConnectionByPlayerId(p: @NotNull UUID): Optional<C>
Link copied to clipboard
abstract fun getConnectionByRemoteSecret(@NotNull remoteSecret: @NotNull UUID): Optional<UdpProxyConnection>
Retrieves a UDP proxy connection by the remote secret of the player.
Link copied to clipboard
abstract fun getConnectionBySecret(p: @NotNull UUID): Optional<C>
Link copied to clipboard
abstract fun getConnections(): Collection<C>
Link copied to clipboard
abstract fun getPlayerIdByAnySecret(@NotNull secret: @NotNull UUID): Optional<UUID>
Gets the player's unique identifier by any of their secrets.
Link copied to clipboard
abstract fun getPlayerIdByProxySecret(@NotNull secret: @NotNull UUID): Optional<UUID>
Gets the player's unique identifier by their proxy secret.
Link copied to clipboard
abstract fun getPlayerIdByRemoteSecret(@NotNull remoteSecret: @NotNull UUID): Optional<UUID>
Gets the player's unique identifier by their remote secret.
Link copied to clipboard
abstract fun getProxySecretByPlayerId(@NotNull playerId: @NotNull UUID): Optional<UUID>
Gets the proxy secret associated with a player's unique identifier.
Link copied to clipboard
abstract fun getRemoteSecretByPlayerId(@NotNull playerId: @NotNull UUID): Optional<UUID>
Gets the remote secret associated with a player's unique identifier.
Link copied to clipboard
abstract fun removeConnection(@NotNull player: @NotNull VoiceProxyPlayer): Boolean
Removes a UDP proxy connection associated with a player.
abstract fun removeConnection(@NotNull connection: @NotNull UdpProxyConnection): Boolean
Removes a UDP proxy connection.
Link copied to clipboard
@NotNull
abstract fun setPlayerRemoteSecret(@NotNull playerUUID: @NotNull UUID, @NotNull remoteSecret: @NotNull UUID): @NotNull UUID
Sets the player's remote secret for the given player UUID.