Interface LocationalSoundPacket

All Superinterfaces:
ConvertablePacket, Packet, SoundPacket

public interface LocationalSoundPacket extends SoundPacket
The receiver of this event will hear the sound from the specified location. If the location is further away than the maximum voice distance, the receiving player won't actually hear the sound.
  • Method Details

    • getPosition

      Position getPosition()
      the audio location
    • getDistance

      float getDistance()
      the distance, the audio can be heard