Interface ConvertablePacket
- All Known Subinterfaces:
EntitySoundPacket,LocationalSoundPacket,MicrophonePacket,SoundPacket,StaticSoundPacket
public interface ConvertablePacket
-
Method Summary
Modifier and TypeMethodDescriptiontoEntitySoundPacket(UUID entityUuid, boolean whispering)Converts this packet to an entity sound packet.toLocationalSoundPacket(Position position)Converts this packet to a locational sound packet.Converts this packet to a static sound packet.
-
Method Details
-
toEntitySoundPacket
Converts this packet to an entity sound packet.- Parameters:
entityUuid- the UUID of the entitywhispering- if the entity is whispering- Returns:
- the entity sound packet
-
toLocationalSoundPacket
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
-