KSpigotParticle

data class KSpigotParticle(particle: Particle, amount: Int, offset: Vector?, extra: Number, data: Any?, force: Boolean)

Parameters

particle

The type of the particle.

amount

The amount of particles.

offset

The offset at which particles should appear.

extra

Particle specific data, often specifying an aspect like speed.

data

Particle specific data, often specifying BlockData or an ItemStack.

force

Determines whether the client should be encouraged to display the particles.

Constructors

KSpigotParticle
Link copied to clipboard
fun KSpigotParticle(particle: Particle, amount: Int = 1, offset: Vector? = null, extra: Number = 1.0, data: Any? = null, force: Boolean = false)
The type of the particle.

Functions

spawnAt
Link copied to clipboard
fun spawnAt(loc: Location)
Spawns the particle at the location.
spawnFor
Link copied to clipboard
fun spawnFor(player: Player)
Spawns the particle at the location of the player.

Properties

amount
Link copied to clipboard
var amount: Int = 1
The amount of particles.
data
Link copied to clipboard
var data: Any? = null
Particle specific data, often specifying BlockData or an ItemStack.
extra
Link copied to clipboard
var extra: Number = 1.0
Particle specific data, often specifying an aspect like speed.
force
Link copied to clipboard
var force: Boolean = false
Determines whether the client should be encouraged to display the particles.
offset
Link copied to clipboard
var offset: Vector? = null
The offset at which particles should appear.
particle
Link copied to clipboard
val particle: Particle
The type of the particle.