withoutEffect

@Contract(value = "_ -> new", pure = true)
abstract fun withoutEffect(index: Int): FireworkRocketMeta

Creates new item metadata with the effect at the given index removed from the effects list.

Return

new item metadata

Parameters

index

the index of the effect to remove

Throws

if the index would result in an out of bounds exception, i.e. when it is too small or too big


@Contract(value = "_ -> new", pure = true)
abstract fun withoutEffect(effect: FireworkEffect): FireworkRocketMeta

Creates new item metadata with the given effect removed from the effects list.

Return

new item metadata

Parameters

effect

the effect to remove