Class BroadcastPoint

java.lang.Object
fr.dreamin.dreamvoice.api.broadcast.model.BroadcastPoint

public final class BroadcastPoint extends Object
Model representing a physical microphone, podium, or intercom broadcast point. When players speak within its radius, audio is broadcast directly to targeted speakers.
  • Constructor Details

    • BroadcastPoint

      public BroadcastPoint(@NotNull @NotNull UUID uuid, @NotNull @NotNull String name, @NotNull @NotNull VoiceLocation location, double radius, boolean allSpeakers, @Nullable @Nullable String filterId, boolean enabled)
    • BroadcastPoint

      public BroadcastPoint(@NotNull @NotNull String name, @NotNull @NotNull VoiceLocation location)
    • BroadcastPoint

      public BroadcastPoint(@NotNull @NotNull String name, @NotNull @NotNull VoiceLocation location, @Nullable @Nullable UUID targetEntityUuid)
  • Method Details

    • isInRange

      public boolean isInRange(@NotNull @NotNull VoiceLocation loc)
    • isInRange

      public boolean isInRange(double x, double y, double z, @NotNull @NotNull String world)
    • toggle

      public boolean toggle()
    • linkSpeaker

      public void linkSpeaker(@NotNull @NotNull String speakerName)
    • unlinkSpeaker

      public void unlinkSpeaker(@NotNull @NotNull String speakerName)
    • targetsSpeaker

      public boolean targetsSpeaker(@NotNull @NotNull String speakerName)
    • getTargetSpeakers

      @NotNull public @NotNull Set<String> getTargetSpeakers()