Package org.spongepowered.api.item
Interface FireworkEffect.Builder
- 
- All Superinterfaces:
- AbstractBuilder<FireworkEffect>,- Buildable.Builder<FireworkEffect>,- Builder<FireworkEffect,FireworkEffect.Builder>,- CopyableBuilder<FireworkEffect,FireworkEffect.Builder>,- ResettableBuilder<FireworkEffect,FireworkEffect.Builder>
 - Enclosing interface:
- FireworkEffect
 
 public static interface FireworkEffect.Builder extends Builder<FireworkEffect,FireworkEffect.Builder>, CopyableBuilder<FireworkEffect,FireworkEffect.Builder> 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description FireworkEffectbuild()Builds aFireworkEffectbased on the current state of this builder.FireworkEffect.Buildercolor(Color color)Adds the givenColorto the initial explosion colors.FireworkEffect.Buildercolors(java.lang.Iterable<Color> colors)Adds the givenColors to the initial explosion colors.FireworkEffect.Buildercolors(Color... colors)Adds the givenColors to the initial explosion colors.FireworkEffect.Builderfade(Color color)Adds the givenColorto the fade colors.FireworkEffect.Builderfades(java.lang.Iterable<Color> colors)Adds the givenColors to the fade colors.FireworkEffect.Builderfades(Color... colors)Adds the givenColors to the fade colors.FireworkEffect.Builderflicker(boolean flicker)Sets whether theFireworkEffectis going to flicker on explosion.default FireworkEffect.Buildershape(java.util.function.Supplier<? extends FireworkShape> shape)Sets the shape of theFireworkEffectexplosion.FireworkEffect.Buildershape(FireworkShape shape)Sets the shape of theFireworkEffectexplosion.FireworkEffect.Buildertrail(boolean trail)Sets whether theFireworkEffectis going to have a trail or not.- 
Methods inherited from interface org.spongepowered.api.util.CopyableBuilderfrom
 
- 
 
- 
- 
- 
Method Detail- 
trailFireworkEffect.Builder trail(boolean trail) Sets whether theFireworkEffectis going to have a trail or not.- Parameters:
- trail- Whether the firework will have a trail
- Returns:
- This builder, for chaining
 
 - 
flickerFireworkEffect.Builder flicker(boolean flicker) Sets whether theFireworkEffectis going to flicker on explosion.- Parameters:
- flicker- Whether the explosion will flicker
- Returns:
- This builder, for chaining
 
 - 
colorFireworkEffect.Builder color(Color color) Adds the givenColorto the initial explosion colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- color- The color to add to the explosion
- Returns:
- This builder, for chaining
 
 - 
colorsFireworkEffect.Builder colors(Color... colors) Adds the givenColors to the initial explosion colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- colors- The colors to add to the explosion
- Returns:
- This builder, for chaining
 
 - 
colorsFireworkEffect.Builder colors(java.lang.Iterable<Color> colors) Adds the givenColors to the initial explosion colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- colors- The colors to add to the explosion
- Returns:
- This builder, for chaining
 
 - 
fadeFireworkEffect.Builder fade(Color color) Adds the givenColorto the fade colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- color- The colors to add to the fade
- Returns:
- This builder, for chaining
 
 - 
fadesFireworkEffect.Builder fades(Color... colors) Adds the givenColors to the fade colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- colors- The colors to add to the fade
- Returns:
- This builder, for chaining
 
 - 
fadesFireworkEffect.Builder fades(java.lang.Iterable<Color> colors) Adds the givenColors to the fade colors.Colors can be mixed and matched in the order they are added in. - Parameters:
- colors- The colors to add to the fade
- Returns:
- This builder, for chaining
 
 - 
shapeFireworkEffect.Builder shape(FireworkShape shape) Sets the shape of theFireworkEffectexplosion.- Parameters:
- shape- The shape of the explosion
- Returns:
- This builder, for chaining
 
 - 
shapedefault FireworkEffect.Builder shape(java.util.function.Supplier<? extends FireworkShape> shape) Sets the shape of theFireworkEffectexplosion.- Parameters:
- shape- The shape of the explosion
- Returns:
- This builder, for chaining
 
 - 
buildFireworkEffect build() Builds aFireworkEffectbased on the current state of this builder.- Specified by:
- buildin interface- AbstractBuilder<FireworkEffect>
- Specified by:
- buildin interface- Buildable.Builder<FireworkEffect>
- Returns:
- A newly created firework effect
 
 
- 
 
-