Interface SoundPacket

All Superinterfaces:
ConvertablePacket, Packet
All Known Subinterfaces:
EntitySoundPacket, LocationalSoundPacket, StaticSoundPacket

public interface SoundPacket extends Packet, ConvertablePacket
  • 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

      @Nullable String getCategory()
      Returns:
      the category ID of the sound packet