Interface EntityAudioChannel
- All Superinterfaces:
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 Summary
Modifier and TypeMethodDescriptionfloat
boolean
void
setDistance
(float distance) void
setWhispering
(boolean whispering) void
updateEntity
(Entity entity) Sets a new entity where this channel is attached to.Methods inherited from interface de.maxhenkel.voicechat.api.audiochannel.AudioChannel
flush, getCategory, getId, isClosed, send, send, setCategory, setFilter
-
Method Details
-
isWhispering
boolean isWhispering()- Returns:
- if the entity is whispering
-
setWhispering
void setWhispering(boolean whispering) - Parameters:
whispering
- if the entity should whisper
-
updateEntity
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
-