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

     1  package particle
     2  
     3  import "image/color"
     4  
     5  // HugeExplosion is a particle shown when TNT or a creeper explodes.
     6  type HugeExplosion struct{ particle }
     7  
     8  // EndermanTeleport is a particle that shows up when an enderman teleports.
     9  type EndermanTeleport struct{ particle }
    10  
    11  // SnowballPoof is a particle shown when a snowball collides with something.
    12  type SnowballPoof struct{ particle }
    13  
    14  // EggSmash is a particle shown when an egg smashes on something.
    15  type EggSmash struct{ particle }
    16  
    17  // Splash is a particle that shows up when a splash potion is splashed.
    18  type Splash struct {
    19  	particle
    20  
    21  	// Colour is the colour that should be splashed.
    22  	Colour color.RGBA
    23  }
    24  
    25  // Effect is a particle that shows up around an entity when it has effects on.
    26  type Effect struct {
    27  	particle
    28  
    29  	// Colour is the colour of the particle.
    30  	Colour color.RGBA
    31  }
    32  
    33  // EntityFlame is a particle shown when an entity is set on fire.
    34  type EntityFlame struct{ particle }