Builder

A builder for building firework effects.

Functions

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun addColor(color: Color): FireworkEffect.Builder

Adds the given color to the list of colours displayed by the firework effect when it explodes.

Link copied to clipboard
@Contract(value = "_ -> this", mutates = "this")
abstract fun addFadeColor(color: Color): FireworkEffect.Builder

Adds the given color to the list of colours displayed by the firework effect when it fades out after exploding.

Link copied to clipboard
@Contract(value = "-> new", pure = true)
@NotNull
abstract fun build(): @NotNull FireworkEffect
Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun flickers(): FireworkEffect.Builder

Makes the firework effect flicker.

Link copied to clipboard
@Contract(value = "-> this", mutates = "this")
abstract fun trail(): FireworkEffect.Builder

Makes the effect have a trail.