Retiring EntityDamageByProjectileEvent in favor of EntityDamageEvent.

This commit is contained in:
sunkid
2011-07-19 13:26:00 -07:00
committed by EvilSeph
parent e2e4d7f4ca
commit 7d4ec8b183
12 changed files with 63 additions and 33 deletions

View File

@@ -0,0 +1,23 @@
package org.bukkit.craftbukkit.entity;
import org.bukkit.craftbukkit.CraftServer;
import org.bukkit.entity.Projectile;
public abstract class AbstractProjectile extends CraftEntity implements Projectile {
private boolean doesBounce;
public AbstractProjectile(CraftServer server, net.minecraft.server.Entity entity) {
super(server, entity);
doesBounce = false;
}
public boolean doesBounce() {
return doesBounce;
}
public void setBounce(boolean doesBounce) {
this.doesBounce = doesBounce;
}
}