Class VoiceProjection

java.lang.Object
fr.dreamin.dreamvoice.api.projection.model.VoiceProjection

public final class VoiceProjection extends Object
Model representing a voice projection / body anchor for a player. Allows remote voice emission and remote environmental hearing (e.g. security cameras, drones, intercoms).
  • Constructor Details

    • VoiceProjection

      public VoiceProjection(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull org.bukkit.Location anchorLocation)
    • VoiceProjection

      public VoiceProjection(@NotNull @NotNull UUID playerUuid, @NotNull @NotNull org.bukkit.entity.Entity anchorEntity)
    • VoiceProjection

      public VoiceProjection(@NotNull @NotNull UUID uuid, @NotNull @NotNull UUID playerUuid, @NotNull @NotNull org.bukkit.Location anchorLocation)
  • Method Details

    • getAnchorLocation

      @NotNull public @NotNull org.bukkit.Location getAnchorLocation()
      Resolves the current anchor coordinates, dynamically tracking the attached entity if valid.
      Returns:
      the active location of the anchor