github.com/df-mc/dragonfly@v0.9.13/server/world/particle.go (about) 1 package world 2 3 import ( 4 "github.com/go-gl/mathgl/mgl64" 5 ) 6 7 // Particle represents a particle that may be added to the world. These particles are then rendered client- 8 // side, with the server having no control over it after sending. 9 type Particle interface { 10 // Spawn spawns the particle at the position passed. Particles may execute any additional actions here, 11 // such as spawning different particles. 12 Spawn(w *World, pos mgl64.Vec3) 13 }