Interface VoiceBroadcastService
public interface VoiceBroadcastService
Service managing physical microphone and intercom broadcast points routed to speakers.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears all registered broadcast points.@NotNull Collection<BroadcastPoint> getBroadcastersInRange(@NotNull VoiceLocation location) Retrieves all active broadcast points covering a specific location.@Nullable BroadcastPointgetBroadcastPoint(@NotNull String name) Retrieves a broadcast point by its unique name.@Nullable BroadcastPointgetBroadcastPoint(@NotNull UUID uuid) Retrieves a broadcast point by its UUID.@NotNull Collection<BroadcastPoint> Retrieves all registered broadcast points.voidload()Reloads all broadcast points from disk.voidregister(@NotNull BroadcastPoint broadcastPoint) Registers a broadcast point.voidsave()Saves all broadcast points to disk.voidunregister(@NotNull String name) Unregisters a broadcast point by its unique name.voidunregister(@NotNull UUID uuid) Unregisters a broadcast point by its UUID.
-
Method Details
-
getBroadcastPoints
Retrieves all registered broadcast points.- Returns:
- collection of broadcast points
-
getBroadcastPoint
Retrieves a broadcast point by its unique name.- Parameters:
name- the broadcast point name- Returns:
- the broadcast point, or null if not found
-
getBroadcastPoint
Retrieves a broadcast point by its UUID.- Parameters:
uuid- the broadcast point UUID- Returns:
- the broadcast point, or null if not found
-
register
Registers a broadcast point.- Parameters:
broadcastPoint- the broadcast point to register
-
unregister
Unregisters a broadcast point by its UUID.- Parameters:
uuid- the broadcast point UUID
-
unregister
Unregisters a broadcast point by its unique name.- Parameters:
name- the broadcast point name
-
clearBroadcastPoints
void clearBroadcastPoints()Clears all registered broadcast points. -
getBroadcastersInRange
@NotNull @NotNull Collection<BroadcastPoint> getBroadcastersInRange(@NotNull @NotNull VoiceLocation location) Retrieves all active broadcast points covering a specific location.- Parameters:
location- the location- Returns:
- collection of matching broadcast points
-
save
void save()Saves all broadcast points to disk. -
load
void load()Reloads all broadcast points from disk.
-