Class VoiceWiretap

java.lang.Object
fr.dreamin.dreamvoice.api.wiretap.model.VoiceWiretap

public final class VoiceWiretap extends Object
Model representing a covert spy microphone / wiretap listening point. Can be fixed in the world or attached to moving entities with live eavesdropping and recording.
  • Constructor Details

    • VoiceWiretap

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

      public VoiceWiretap(@NotNull @NotNull String name, @NotNull @NotNull VoiceLocation location, @Nullable @Nullable UUID targetEntityUuid)
    • VoiceWiretap

      public VoiceWiretap(@NotNull @NotNull UUID uuid, @NotNull @NotNull String name, @NotNull @NotNull VoiceLocation location)
  • Method Details

    • isAttachedToEntity

      public boolean isAttachedToEntity()
    • addListener

      public void addListener(@NotNull @NotNull UUID playerUuid)
    • removeListener

      public void removeListener(@NotNull @NotNull UUID playerUuid)
    • hasListener

      public boolean hasListener(@NotNull @NotNull UUID playerUuid)
    • getListeners

      @NotNull public @NotNull Set<UUID> getListeners()
    • startRecording

      @NotNull public @NotNull VoiceRecording startRecording()
    • stopRecording

      @Nullable public @Nullable VoiceRecording stopRecording()
    • isRecording

      public boolean isRecording()
    • getRecordings

      @NotNull public @NotNull List<VoiceRecording> getRecordings()