DustTransitionParticleEffectBuilder

A builder for building dust transition particle effects.

Functions

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull ParticleEffect
Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun color(color: Color): DustTransitionParticleEffectBuilder

Sets the color of the particle to the given color.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun longDistance(longDistance: Boolean): DustTransitionParticleEffectBuilder

Sets whether the particle effect can be viewed from a further distance than normal.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun offset(offset: Vec3d): DustTransitionParticleEffectBuilder

Sets the offset the particles can be from the origin.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun quantity(quantity: Int): DustTransitionParticleEffectBuilder

Sets the number of particles to be spawned by the particle effect.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun scale(scale: Float): DustTransitionParticleEffectBuilder

Sets the scale of the dust particles.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun toColor(color: Color): DustTransitionParticleEffectBuilder

Sets the colour to transition the particle to to the given color.