Interface ConvertablePacket

All Known Subinterfaces:
EntitySoundPacket, LocationalSoundPacket, MicrophonePacket, SoundPacket, StaticSoundPacket

public interface ConvertablePacket
  • Method Details

    • toEntitySoundPacket

      EntitySoundPacket toEntitySoundPacket(UUID entityUuid, boolean whispering)
      Converts this packet to an entity sound packet.
      Parameters:
      entityUuid - the UUID of the entity
      whispering - if the entity is whispering
      Returns:
      the entity sound packet
    • toLocationalSoundPacket

      LocationalSoundPacket toLocationalSoundPacket(Position position)
      Converts this packet to a locational sound packet.
      Parameters:
      position - the position of the audio
      Returns:
      the locational sound packet
    • toStaticSoundPacket

      StaticSoundPacket toStaticSoundPacket()
      Converts this packet to a static sound packet.
      Returns:
      the static sound packet