Package org.bukkit.entity
Interface Fireball
- All Superinterfaces:
CommandSender,Entity,Explosive,Metadatable,Permissible,Projectile,ServerOperator
- All Known Subinterfaces:
LargeFireball,SmallFireball,WitherSkull
public interface Fireball extends Projectile, Explosive
Represents a Fireball.
-
Nested Class Summary
-
Method Summary
Modifier and Type Method Description VectorgetDirection()Retrieve the direction this fireball is heading towardvoidsetDirection(Vector direction)Fireballs fly straight and do not take setVelocity(...) well.Methods inherited from interface org.bukkit.entity.Entity
eject, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getVelocity, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, setVelocity, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.entity.Explosive
getYield, isIncendiary, setIsIncendiary, setYieldMethods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.entity.Projectile
_INVALID_getShooter, _INVALID_setShooter, doesBounce, getShooter, setBounce, setShooter
-
Method Details
-
setDirection
Fireballs fly straight and do not take setVelocity(...) well.- Parameters:
direction- the direction this fireball is flying toward
-
getDirection
Vector getDirection()Retrieve the direction this fireball is heading toward- Returns:
- the direction
-