程序包 org.bukkit.entity

# 接口 Fireball

所有超级接口:
  `CommandSender`, `Entity`, `Explosive`, `Metadatable`, `Nameable`, `Permissible`, `PersistentDataHolder`, `Projectile`, `ServerOperator`

所有已知子接口:
  `AbstractWindCharge`, `BreezeWindCharge`, `DragonFireball`, `LargeFireball`, `SizedFireball`, `SmallFireball`, `WindCharge`, `WitherSkull`

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

- ## 嵌套类概要

  ## 从接口继承的嵌套类/接口 org.bukkit.entity.Entity

  `Entity.Spigot`

- ## 方法概要

  修饰符和类型
  方法
  说明
  `@NotNull Vector`
  `getAcceleration()`
  Retrieve the acceleration of this fireball.
  `@NotNull Vector`
  `getDirection()`
  已过时。
  badly named method, returns the value of `getAcceleration()`
  `void`
  `setAcceleration(@NotNull Vector acceleration)`
  Sets the acceleration of the fireball.
  `void`
  `setDirection(@NotNull Vector direction)`
  Sets the direction the fireball should be flying towards.

  ### 从接口继承的方法 org.bukkit.command.CommandSender

  `getName, sendMessage, sendMessage, sendMessage, sendMessage`

  ### 从接口继承的方法 org.bukkit.entity.Entity

  `addPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getVelocity, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVelocity, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleport`

  ### 从接口继承的方法 org.bukkit.entity.Explosive

  `getYield, isIncendiary, setIsIncendiary, setYield`

  ### 从接口继承的方法 org.bukkit.metadata.Metadatable

  `getMetadata, hasMetadata, removeMetadata, setMetadata`

  ### 从接口继承的方法 org.bukkit.Nameable

  `getCustomName, setCustomName`

  ### 从接口继承的方法 org.bukkit.permissions.Permissible

  `addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment`

  ### 从接口继承的方法 org.bukkit.persistence.PersistentDataHolder

  `getPersistentDataContainer`

  ### 从接口继承的方法 org.bukkit.entity.Projectile

  `doesBounce, getShooter, setBounce, setShooter`

  ### 从接口继承的方法 org.bukkit.permissions.ServerOperator

  `isOp, setOp`

- ## 方法详细资料

  - ### setDirection

    void setDirection(@NotNull @NotNull Vector direction)
    Sets the direction the fireball should be flying towards.
    This is a convenience method, it will change the velocity direction and acceleration direction, while keeping the power the same.
    Note: This method only uses the direction of the vector and will normalize (a copy of) it.
    Special Case: When the given direction is `zero`, the velocity and acceleration will also be set to zero without keeping the power.
    参数:
      `direction` - the direction this fireball should be flying towards
    另请参阅:
      - `Entity.setVelocity(Vector)`
      - `setAcceleration(Vector)`

  - ### getDirection

    @NotNull @Deprecated(since="1.20.6") @NotNull Vector getDirection()
    已过时。
    badly named method, returns the value of `getAcceleration()`
    Retrieve the direction this fireball is heading toward. The returned vector is not normalized.
    返回:
      the direction
    另请参阅:
      - `getAcceleration()`

  - ### setAcceleration

    void setAcceleration(@NotNull @NotNull Vector acceleration)
    Sets the acceleration of the fireball. The acceleration gets applied to the velocity every tick, depending on the specific type of the fireball a damping / drag factor is applied so that the velocity does not grow into infinity.
    Note: that the client may not respect non-default acceleration power and will therefore mispredict the location of the fireball, causing visual stutter.
    参数:
      `acceleration` - the acceleration

  - ### getAcceleration

    @NotNull @NotNull Vector getAcceleration()
    Retrieve the acceleration of this fireball.
    返回:
      the acceleration