Retiring EntityDamageByProjectileEvent in favor of EntityDamageEvent.

By: sunkid <sunkid@iminurnetz.com>
This commit is contained in:
Bukkit/Spigot
2011-07-19 10:21:17 -07:00
parent 920854a915
commit 8054b4db89
3 changed files with 27 additions and 11 deletions

View File

@@ -16,8 +16,21 @@ public interface Projectile extends Entity {
/**
* Set the shooter of this projectile
*
* @param shooter
* the {@link LivingEntity} that shot this projectile
* @param shooter the {@link LivingEntity} that shot this projectile
*/
public void setShooter(LivingEntity shooter);
/**
* Determine if this projectile should bounce or not when it hits.
*
* @return true if it should bounce.
*/
public boolean doesBounce();
/**
* Set whether or not this projectile should bounce or not when it hits something.
*
* @param doesBounce whether or not it should bounce.
*/
public void setBounce(boolean doesBounce);
}