Uses of Class
org.bukkit.FireworkEffect
Package
Description
The root package of the Bukkit API, contains generalized API classes.
The interfaces used when manipulating extra data can can be stored inside
item stacks
.-
Uses of FireworkEffect in io.papermc.paper.datacomponent
Modifier and TypeFieldDescriptionstatic final DataComponentType.Valued
<FireworkEffect> DataComponentTypes.FIREWORK_EXPLOSION
Stores the explosion crafted in a Firework Star. -
Uses of FireworkEffect in io.papermc.paper.datacomponent.item
Modifier and TypeMethodDescriptionFireworks.effects()
Lists the effects stored in this component.Modifier and TypeMethodDescriptionFireworks.Builder.addEffect
(FireworkEffect effect) Adds an explosion to this builder.Modifier and TypeMethodDescriptionFireworks.Builder.addEffects
(List<FireworkEffect> effects) Adds explosions to this builder.static Fireworks
Fireworks.fireworks
(List<FireworkEffect> effects, int flightDuration) -
Uses of FireworkEffect in org.bukkit
Modifier and TypeMethodDescriptionFireworkEffect.Builder.build()
Create aFireworkEffect
from the current contents of this builder. -
Uses of FireworkEffect in org.bukkit.inventory.meta
Modifier and TypeMethodDescriptionFireworkEffectMeta.getEffect()
Gets the firework effect for this meta.Modifier and TypeMethodDescriptionvoid
FireworkMeta.addEffect
(@NotNull FireworkEffect effect) Add another effect to this firework.void
FireworkMeta.addEffects
(@NotNull FireworkEffect... effects) Add several effects to this firework.void
FireworkEffectMeta.setEffect
(@Nullable FireworkEffect effect) Sets the firework effect for this meta.Modifier and TypeMethodDescriptionvoid
FireworkMeta.addEffects
(@NotNull Iterable<FireworkEffect> effects) Add several firework effects to this firework.