setCancelled

public void setCancelled(boolean cancel)

Set the cancelled state of this event. If the firework explosion is cancelled, the firework will still be removed, but no particles will be displayed.

Parameters

cancel

whether to cancel or not.