Interface Fireball

All Superinterfaces:
net.kyori.adventure.audience.Audience, CommandSender, Entity, Explosive, net.kyori.adventure.text.event.HoverEventSource<net.kyori.adventure.text.event.HoverEvent.ShowEntity>, Metadatable, Nameable, Permissible, PersistentDataHolder, net.kyori.adventure.pointer.Pointered, Projectile, ServerOperator
All Known Subinterfaces:
DragonFireball, LargeFireball, SizedFireball, SmallFireball, WitherSkull

public interface Fireball extends Projectile, Explosive
Represents a Fireball.
  • Method Details

    • setDirection

      void setDirection(@NotNull @NotNull Vector direction)
      Fireballs fly straight and do not take setVelocity(...) well.
      Parameters:
      direction - the direction this fireball is flying toward
    • getDirection

      @NotNull @NotNull Vector getDirection()
      Retrieve the direction this fireball is heading toward
      Returns:
      the direction