github.com/df-mc/dragonfly@v0.9.13/server/world/sound.go (about)

     1  package world
     2  
     3  import "github.com/go-gl/mathgl/mgl64"
     4  
     5  // Sound represents a sound that may be added to the world. When done, viewers of the world may be able to
     6  // hear the sound.
     7  type Sound interface {
     8  	// Play plays the sound. This function may play other sounds too. It is always called when World.PlaySound
     9  	// is called with the sound.
    10  	Play(w *World, pos mgl64.Vec3)
    11  }