Interface Fireworks.Builder
- All Superinterfaces:
DataComponentBuilder<Fireworks>
- Enclosing interface:
Fireworks
@Experimental
@NonExtendable
public static interface Fireworks.Builder
extends DataComponentBuilder<Fireworks>
Builder for
Fireworks
.-
Method Summary
Modifier and TypeMethodDescriptionaddEffect
(FireworkEffect effect) Adds an explosion to this builder.addEffects
(List<FireworkEffect> effects) Adds explosions to this builder.flightDuration
(@org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int duration) Sets the number of gunpowder used in this builder.Methods inherited from interface io.papermc.paper.datacomponent.DataComponentBuilder
build
-
Method Details
-
flightDuration
@Contract(value="_ -> this", mutates="this") Fireworks.Builder flightDuration(@org.checkerframework.common.value.qual.IntRange(from=0L, to=255L) int duration) Sets the number of gunpowder used in this builder.- Parameters:
duration
- duration- Returns:
- the builder for chaining
- See Also:
-
addEffect
Adds an explosion to this builder.- Parameters:
effect
- effect- Returns:
- the builder for chaining
- See Also:
-
addEffects
@Contract(value="_ -> this", mutates="this") Fireworks.Builder addEffects(List<FireworkEffect> effects) Adds explosions to this builder.- Parameters:
effects
- effects- Returns:
- the builder for chaining
- See Also:
-