接口 Fireball

所有超级接口:
CommandSender, Entity, Explosive, Metadatable, Nameable, Permissible, PersistentDataHolder, Projectile, ServerOperator
所有已知子接口:
DragonFireball, LargeFireball, SizedFireball, SmallFireball, WitherSkull

public interface Fireball extends Projectile, Explosive
代表一个火球.

原文: Represents a Fireball.

  • 方法详细资料

    • setDirection

      void setDirection(@NotNull @NotNull Vector direction)
      火球以直线飞行, setVelocity(...) 无效果.

      原文: Fireballs fly straight and do not take setVelocity(...) well.

      参数:
      direction - 火球的飞行方向
    • getDirection

      @NotNull @NotNull Vector getDirection()
      获得火球的前进方向.

      原文: Retrieve the direction this fireball is heading toward

      返回:
      方向(向量)