KSpigotParticle

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

Parameters

amount

The amount of particles.

data

Particle specific data, often specifying BlockData or an ItemStack.

extra

Particle specific data, often specifying an aspect like speed.

force

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

offset

The offset at which particles should appear.

particle

The type of the particle.

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

component1
Link copied to clipboard
operator fun component1(): Particle
component2
Link copied to clipboard
operator fun component2(): Int
component3
Link copied to clipboard
operator fun component3(): Vector?
component4
Link copied to clipboard
operator fun component4(): Number
component5
Link copied to clipboard
operator fun component5(): Any?
component6
Link copied to clipboard
operator fun component6(): Boolean
copy
Link copied to clipboard
fun copy(particle: Particle, amount: Int = 1, offset: Vector? = null, extra: Number = 1.0, data: Any? = null, force: Boolean = false): KSpigotParticle
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int
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.
toString
Link copied to clipboard
open override fun toString(): String

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.