Interface EntitySoundPacket
- All Superinterfaces:
ConvertablePacket
,Packet
,SoundPacket
The receiver of this event will hear the sound from the specified entity.
This can be done for all entities, but only players will show the speaker icon.
If the entity is further away than the maximum voice distance, the receiving player won't actually hear the sound.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
EntitySoundPacket.Builder<T extends EntitySoundPacket.Builder<T>>
A builder to build an entity sound packet. -
Method Summary
Modifier and TypeMethodDescriptionfloat
boolean
Methods inherited from interface de.maxhenkel.voicechat.api.packets.ConvertablePacket
entitySoundPacketBuilder, locationalSoundPacketBuilder, staticSoundPacketBuilder, toEntitySoundPacket, toLocationalSoundPacket, toStaticSoundPacket
Methods inherited from interface de.maxhenkel.voicechat.api.packets.SoundPacket
getCategory, getChannelId, getOpusEncodedData, getSender, getSequenceNumber
-
Method Details
-
getEntityUuid
UUID getEntityUuid()- Returns:
- the UUID of the entity
-
isWhispering
boolean isWhispering()- Returns:
- if the entity is whispering
-
getDistance
float getDistance()- Returns:
- the distance, the audio can be heard
-