Interface Firework

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, Entity, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, Projectile, ServerOperator

public interface Firework extends Projectile
  • Method Details

    • getFireworkMeta

      @NotNull @NotNull FireworkMeta getFireworkMeta()
      Get a copy of the fireworks meta
      Returns:
      A copy of the current Firework meta
    • setFireworkMeta

      void setFireworkMeta(@NotNull @NotNull FireworkMeta meta)
      Apply the provided meta to the fireworks
      Parameters:
      meta - The FireworkMeta to apply
    • detonate

      void detonate()
      Cause this firework to explode at earliest opportunity, as if it has no remaining fuse.
    • isShotAtAngle

      boolean isShotAtAngle()
      Gets if the firework was shot at an angle (i.e. from a crossbow). A firework which was not shot at an angle will fly straight upwards.
      Returns:
      shot at angle status
    • setShotAtAngle

      void setShotAtAngle(boolean shotAtAngle)
      Sets if the firework was shot at an angle (i.e. from a crossbow). A firework which was not shot at an angle will fly straight upwards.
      Parameters:
      shotAtAngle - the new shotAtAngle
    • getSpawningEntity

      @Nullable UUID getSpawningEntity()
    • getBoostedEntity

      @Nullable @Nullable LivingEntity getBoostedEntity()
      If this firework is boosting an entity, return it
      Returns:
      The entity being boosted