Interface LocationalSoundPacket.Builder<T extends LocationalSoundPacket.Builder<T>>

Type Parameters:
T - the builder itself
All Superinterfaces:
SoundPacket.Builder<T,LocationalSoundPacket>
Enclosing interface:
LocationalSoundPacket

public static interface LocationalSoundPacket.Builder<T extends LocationalSoundPacket.Builder<T>> extends SoundPacket.Builder<T,LocationalSoundPacket>
A builder to build a locational sound packet. NOTE: Some values are required to be set.
  • Method Details

    • position

      T position(Position position)
      This is required to be set!
      Parameters:
      position - the position of the sound
      Returns:
      the builder
    • distance

      T distance(float distance)
      Parameters:
      distance - the distance, this packet can be heard
      Returns:
      the builder