ParticleBuilder

class ParticleBuilder(val type: Particle)

DSL builder for configuring a particle effect.

Constructors

Link copied to clipboard
constructor(type: Particle)

Properties

Link copied to clipboard
var amount: Int

The number of particles to spawn.

Link copied to clipboard
var data: Any?

Optional particle-specific data (e.g. DustOptions).

Link copied to clipboard

Extra data such as speed.

Link copied to clipboard
var location: Location?

The location to spawn particles at, or null to use the player's location.

Link copied to clipboard
var offset: Vector

The spread offset of the particles.

Link copied to clipboard
val type: Particle

The particle type.