Interface EntityAudioChannel

All Superinterfaces:
AudioChannel

public interface EntityAudioChannel extends AudioChannel
An audio channel that is bound to an entity. NOTE: If you are using this for a player, you need to use updateEntity(Entity) to update the player after it died.
  • Method Details

    • isWhispering

      boolean isWhispering()
      Returns:
      if the entity is whispering
    • setWhispering

      void setWhispering(boolean whispering)
      Parameters:
      whispering - if the entity should whisper
    • updateEntity

      void updateEntity(Entity entity)
      Sets a new entity where this channel is attached to.
      Parameters:
      entity - the entity to attach the channel to
    • getEntity

      Entity getEntity()
      Returns:
      the entity where the channel is attached to
    • getDistance

      float getDistance()
      Returns:
      the distance, the audio can be heard
    • setDistance

      void setDistance(float distance)
      Parameters:
      distance - the distance, the audio can be heard