Class Speaker

java.lang.Object
fr.dreamin.dreamvoice.api.speaker.model.Speaker

public final class Speaker extends Object
Model representing a 3D locational speaker in the Minecraft world. Supports dual channels (speech + music), static or mobile entity attachment, and access controls.
  • Method Details

    • isSpeakerAllowed

      public boolean isSpeakerAllowed(@NotNull @NotNull UUID speakerUuid)
    • linkSpeaker

      public void linkSpeaker(@NotNull @NotNull UUID playerUuid)
    • unlinkSpeaker

      public void unlinkSpeaker(@NotNull @NotNull UUID playerUuid)
    • clearAllowedSpeakers

      public void clearAllowedSpeakers()
    • getAllowedSpeakers

      @NotNull public @NotNull Set<UUID> getAllowedSpeakers()
    • stopPlaying

      public void stopPlaying()
    • isPlaying

      public boolean isPlaying()
    • getLocation

      @NotNull public @NotNull VoiceLocation getLocation()
    • updatePosition

      public void updatePosition(@NotNull @NotNull VoiceLocation location)
    • updateDistance

      public void updateDistance(@NotNull @NotNull Float distance)
    • updateFilter

      public void updateFilter(@Nullable @Nullable Predicate<de.maxhenkel.voicechat.api.ServerPlayer> filter)
    • builder

      public static Speaker.Builder builder()