Interface Fireball

All Superinterfaces:
CommandSender, Entity, Explosive, Metadatable, Nameable, Permissible, PersistentDataHolder, Projectile, ServerOperator
All Known Subinterfaces:
AbstractWindCharge, BreezeWindCharge, DragonFireball, LargeFireball, SizedFireball, SmallFireball, WindCharge, WitherSkull

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

    • setDirection

      void setDirection(@NotNull Vector direction)
      Sets the direction the fireball should be flying towards. The direction vector will be normalized and the default speed will be applied.
      To also change the speed of the fireball, use Entity.setVelocity(Vector). Note: that the client may not respect non-default speeds and will therefore mispredict the location of the fireball, causing visual stutter.
      Also Note: that this method and Entity.setVelocity(Vector) will override each other.
      Parameters:
      direction - the direction this fireball should be flying towards
      See Also:
    • getDirection

      @NotNull Vector getDirection()
      Retrieve the direction this fireball is heading toward The returned vector is not normalized.
      Returns:
      the direction