public interface VoicePlayerManager<P extends VoicePlayer>
| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<P> |
getPlayerById(@NotNull java.util.UUID playerId)
Gets the
P by uuid |
java.util.Collection<P> |
getPlayers()
Gets collection of the players
|
java.util.Collection<java.lang.String> |
getSynchronizedPermissions()
Gets the collection of synchronized permissions
|
void |
registerPermission(@NotNull java.lang.String permission)
Registers the permission which will be synchronized with the client API
|
void |
unregisterPermission(@NotNull java.lang.String permission)
Unregisters the synchronized permission
|
P |
wrap(@NotNull java.lang.Object instance)
Gets the
P by server player |
java.util.Optional<P> getPlayerById(@NotNull @NotNull java.util.UUID playerId)
P by uuidplayerId - player's unique idP@NotNull P wrap(@NotNull @NotNull java.lang.Object instance)
P by server playerinstance - player's server object
org.bukkit.entity.Player for Bukkit+
net.minecraft.server.level.ServerPlayer for Fabric/Forge/OrSomethingModdedPjava.util.Collection<P> getPlayers()
Pvoid registerPermission(@NotNull
@NotNull java.lang.String permission)
permission - the permissionjava.lang.IllegalArgumentException - if permission is already registeredvoid unregisterPermission(@NotNull
@NotNull java.lang.String permission)
permission - the permissionjava.util.Collection<java.lang.String> getSynchronizedPermissions()
String