Particle constructor

Particle(
  1. ParticleType particle, {
  2. String? texture,
  3. Location? location,
  4. Location? delta,
  5. double speed = 0,
  6. int count = 1,
  7. bool force = false,
  8. Entity? player,
})

The particle command spawns particles in the world to enhance certain graphics.

constructor
ParticleType the type of the particle( ParticleType.particle_id )
location where to show the particle(required)
delta the directions in which the particle expands(Location.glob, optional)
speed the speed of the expanding particle(optional, but delta required)
count the amount of particles(optional, but delta required)
force bool if the particle should be visible from far away(optional)
texture texture for block, falling_dust, item and dust particles(optional)
Particle(
	ParticleType.flame,
	location: Location.here(),
)
⇒ particle minecraft:flame ~ ~ ~

Implementation

Particle(
  this.particle, {
  this.texture,
  this.location,
  this.delta,
  this.speed = 0,
  this.count = 1,
  this.force = false,
  this.player,
});