Particle

class Particle(underlyingEntity: MCParticle) : Entity

Functions

Link copied to clipboard
fun getColor(): Color

Returns the color of the Particle

Link copied to clipboard
fun multiplyVelocity(multiplier: Float): Particle
Link copied to clipboard
fun remove(): Particle
Link copied to clipboard
fun scale(scale: Float): Particle
Link copied to clipboard
fun setAlpha(alpha: Float): Particle

Sets the alpha of the particle.

Link copied to clipboard
fun setColor(color: Long): Particle

fun setColor(red: Float, green: Float, blue: Float): Particle
fun setColor(red: Float, green: Float, blue: Float, alpha: Float): Particle

Sets the color of the particle.

Link copied to clipboard
fun setMaxAge(maxAge: Int): Particle

Sets the amount of ticks this particle will live for

Link copied to clipboard
fun setX(x: Double): Particle
Link copied to clipboard
fun setY(y: Double): Particle
Link copied to clipboard
fun setZ(z: Double): Particle
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val underlyingEntity: MCParticle

Sources

Link copied to clipboard