Interface VoiceBroadcastService


public interface VoiceBroadcastService
Service managing physical microphone and intercom broadcast points routed to speakers.
  • Method Details

    • getBroadcastPoints

      @NotNull @NotNull Collection<BroadcastPoint> getBroadcastPoints()
      Retrieves all registered broadcast points.
      Returns:
      collection of broadcast points
    • getBroadcastPoint

      @Nullable @Nullable BroadcastPoint getBroadcastPoint(@NotNull @NotNull String name)
      Retrieves a broadcast point by its unique name.
      Parameters:
      name - the broadcast point name
      Returns:
      the broadcast point, or null if not found
    • getBroadcastPoint

      @Nullable @Nullable BroadcastPoint getBroadcastPoint(@NotNull @NotNull UUID uuid)
      Retrieves a broadcast point by its UUID.
      Parameters:
      uuid - the broadcast point UUID
      Returns:
      the broadcast point, or null if not found
    • register

      void register(@NotNull @NotNull BroadcastPoint broadcastPoint)
      Registers a broadcast point.
      Parameters:
      broadcastPoint - the broadcast point to register
    • unregister

      void unregister(@NotNull @NotNull UUID uuid)
      Unregisters a broadcast point by its UUID.
      Parameters:
      uuid - the broadcast point UUID
    • unregister

      void unregister(@NotNull @NotNull String name)
      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.