Package org.bukkit.entity
Interface Fireball
- All Superinterfaces:
- CommandSender,- Entity,- Explosive,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- Projectile,- ServerOperator
- All Known Subinterfaces:
- AbstractWindCharge,- BreezeWindCharge,- DragonFireball,- LargeFireball,- SizedFireball,- SmallFireball,- WindCharge,- WitherSkull
Represents a Fireball.
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionRetrieve the acceleration of this fireball.Deprecated.voidsetAcceleration(Vector acceleration) Sets the acceleration of the fireball.voidsetDirection(Vector direction) Sets the direction the fireball should be flying towards.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, 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, teleportMethods inherited from interface org.bukkit.entity.ExplosivegetYield, isIncendiary, setIsIncendiary, setYieldMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.entity.ProjectiledoesBounce, getShooter, setBounce, setShooterMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOp
- 
Method Details- 
setDirectionSets 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 iszero, the velocity and acceleration will also be set to zero without keeping the power.- Parameters:
- direction- the direction this fireball should be flying towards
- See Also:
 
- 
getDirectionDeprecated.badly named method, returns the value ofgetAcceleration()Retrieve the direction this fireball is heading toward. The returned vector is not normalized.- Returns:
- the direction
- See Also:
 
- 
setAccelerationSets 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.- Parameters:
- acceleration- the acceleration
 
- 
getAccelerationRetrieve the acceleration of this fireball.- Returns:
- the acceleration
 
 
- 
getAcceleration()