Interface MicrophonePacket
- All Superinterfaces:
ConvertablePacket, Packet
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]booleanvoidsetOpusEncodedData(byte[] data) Allows you to modify or replace the opus encoded audio data.Methods inherited from interface ConvertablePacket
entitySoundPacketBuilder, locationalSoundPacketBuilder, staticSoundPacketBuilder, toEntitySoundPacket, toLocationalSoundPacket, toStaticSoundPacket
-
Method Details
-
isWhispering
boolean isWhispering()- Returns:
- if the player is whispering
-
getOpusEncodedData
byte[] getOpusEncodedData()- Returns:
- the opus encoded audio data from the player
-
setOpusEncodedData
void setOpusEncodedData(byte[] data) Allows you to modify or replace the opus encoded audio data.- Parameters:
data- the opus encoded audio data to replace
-