Interface ConvertablePacket
- All Known Subinterfaces:
EntitySoundPacket
,LocationalSoundPacket
,MicrophonePacket
,SoundPacket
,StaticSoundPacket
public interface ConvertablePacket
-
Method Summary
Modifier and TypeMethodDescriptionNOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.NOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.NOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.toEntitySoundPacket
(UUID entityUuid, boolean whispering) Deprecated.toLocationalSoundPacket
(Position position) Deprecated.Deprecated.
-
Method Details
-
entitySoundPacketBuilder
EntitySoundPacket.Builder<?> entitySoundPacketBuilder()NOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.- Returns:
- a builder to build an entity sound packet based on this packet
-
locationalSoundPacketBuilder
LocationalSoundPacket.Builder<?> locationalSoundPacketBuilder()NOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.- Returns:
- a builder to build a locational sound packet based on this packet
-
staticSoundPacketBuilder
StaticSoundPacket.Builder<?> staticSoundPacketBuilder()NOTE: Make sure to setSoundPacket.Builder.channelId(UUID)
to avoid conflicts with other channels.- Returns:
- a builder to build a static sound packet based on this packet
-
toEntitySoundPacket
Deprecated.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
Deprecated.Converts this packet to a locational sound packet.- Parameters:
position
- the position of the audio- Returns:
- the locational sound packet
-
toStaticSoundPacket
Deprecated.Converts this packet to a static sound packet.- Returns:
- the static sound packet
-
entitySoundPacketBuilder()