Interface EntitySoundPacket.Builder<T extends EntitySoundPacket.Builder<T>>
- Type Parameters:
T- the builder itself
- All Superinterfaces:
SoundPacket.Builder<T, EntitySoundPacket>
- Enclosing interface:
EntitySoundPacket
public static interface EntitySoundPacket.Builder<T extends EntitySoundPacket.Builder<T>>
extends SoundPacket.Builder<T, EntitySoundPacket>
A builder to build an entity sound packet.
NOTE: Some values are required to be set.
-
Method Summary
Modifier and TypeMethodDescriptiondistance(float distance) entityUuid(UUID entityUuid) This is required to be set!
The entity UUID is also used as the sender of the packet.whispering(boolean whispering) Methods inherited from interface SoundPacket.Builder
build, category, channelId, opusEncodedData, sender, sequenceNumber
-
Method Details
-
entityUuid
-
whispering
- Parameters:
whispering- if the entity should be whispering- Returns:
- the builder
-
distance
- Parameters:
distance- the distance, this packet can be heard- Returns:
- the builder
-