Interface SoundPacket
- All Superinterfaces:
ConvertablePacket, Packet
- All Known Subinterfaces:
EntitySoundPacket, LocationalSoundPacket, StaticSoundPacket
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceSoundPacket.Builder<T extends SoundPacket.Builder<T,P>, P extends SoundPacket> A builder to build a sound packet. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]longMethods inherited from interface ConvertablePacket
entitySoundPacketBuilder, locationalSoundPacketBuilder, staticSoundPacketBuilder, toEntitySoundPacket, toLocationalSoundPacket, toStaticSoundPacket
-
Method Details
-
getChannelId
UUID getChannelId()- Returns:
- the channel ID of the sound packet
-
getSender
UUID getSender()- Returns:
- the sender of this packet - doesn't necessarily need to be a players UUID
-
getOpusEncodedData
byte[] getOpusEncodedData()- Returns:
- the opus encoded audio data
-
getSequenceNumber
long getSequenceNumber()- Returns:
- the sequence number of the packet
-
getCategory
- Returns:
- the category ID of the sound packet
-