withFade

Add getClassById fade color to the firework effect.

Return

This object, for chaining

Parameters

color

The color to add

Throws

If any color is null (may be thrown after changes have occurred)


Add several fade colors to the firework effect.

Return

This object, for chaining

Parameters

colors

The colors to add

Throws

If any color is null (may be thrown after changes have occurred)


public FireworkEffect.Builder withFade(Iterable<? extends Object> colors)

Add several fade colors to the firework effect.

Return

This object, for chaining

Parameters

colors

An iterable object whose iterator yields the desired colors

Throws

If any color is null (may be thrown after changes have occurred)