Added the concept of a projectile.

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-06-18 08:09:41 -07:00
parent 2a62ac59bf
commit 31e3c65440
11 changed files with 83 additions and 16 deletions
@@ -1,6 +1,24 @@
package org.bukkit.entity;
import org.bukkit.util.Vector;
/**
* Represents a Fireball.
*/
public interface Fireball extends Explosive {}
public interface Fireball extends Projectile, Explosive {
/**
* Fireballs fly straight and do not take setVelocity(...) well.
*
* @param direction
* the direction this fireball is flying toward
*/
public void setDirection(Vector direction);
/**
* Retrieve the direction this fireball is heading toward
*
* @return the direction
*/
public Vector getDirection();
}