[Bleeding] Implemented ProjectileLaunchEvent. Addresses BUKKIT-284

By: Celtic Minstrel <celtic.minstrel.ca@some.place>
This commit is contained in:
CraftBukkit/Spigot 2012-03-12 12:45:09 -04:00
parent 6219bc5085
commit 852f37abfd

View File

@ -491,4 +491,11 @@ public class CraftEventFactory {
return CraftItemStack.createNMSItemStack(bitem);
}
public static ProjectileLaunchEvent callProjectileLaunchEvent(Entity entity) {
Projectile bukkitEntity = (Projectile) entity.getBukkitEntity();
ProjectileLaunchEvent event = new ProjectileLaunchEvent(bukkitEntity);
Bukkit.getPluginManager().callEvent(event);
return event;
}
}