Interface Facet.EntitySound<V,M>

Type Parameters:
V - viewer type
M - sound packet type
All Superinterfaces:
Facet<V>
Enclosing interface:
Facet<V>

public static interface Facet.EntitySound<V,M> extends Facet<V>
Create a sound that follows a certain entity.
Since:
4.0.0
  • Method Details

    • createForSelf

      M createForSelf(V viewer, @NotNull Sound sound)
      Create a sound packet following the viewer themself.
      Parameters:
      viewer - the receiver of the sound
      sound - the sound to play
      Returns:
      a new packet
      Since:
      4.0.0
    • createForEmitter

      M createForEmitter(@NotNull Sound sound, @NotNull Sound.Emitter emitter)
      Create a sound packet following a specific emitter.
      Parameters:
      sound - the sound to play
      emitter - the emitter to track
      Returns:
      a new packet
      Since:
      4.0.0
    • playSound

      void playSound(@NotNull V viewer, M message)
      Play a created sound message to a viewer.
      Parameters:
      viewer - the viewer to receive the sound
      message - the sound message to send
      Since:
      4.0.0