Class RadioChannel

java.lang.Object
fr.dreamin.dreamvoice.api.radio.model.RadioChannel

public final class RadioChannel extends Object
Model representing a radio frequency channel. Manages connected member UUIDs, Roger Beep audio signals, and audio filter routing.
  • Constructor Details

    • RadioChannel

      public RadioChannel(@NotNull @NotNull String name)
  • Method Details

    • addMember

      public void addMember(@NotNull @NotNull UUID playerUuid)
      Adds a member player to this radio channel.
      Parameters:
      playerUuid - the UUID of the player
    • removeMember

      public void removeMember(@NotNull @NotNull UUID playerUuid)
      Removes a member player from this radio channel.
      Parameters:
      playerUuid - the UUID of the player
    • hasMember

      public boolean hasMember(@NotNull @NotNull UUID playerUuid)
      Checks whether a player is connected to this radio channel.
      Parameters:
      playerUuid - the UUID of the player
      Returns:
      true if the player is a member
    • getMembers

      @NotNull public @NotNull Set<UUID> getMembers()
      Returns an unmodifiable view of all member UUIDs.
      Returns:
      set of member UUIDs