[Bleeding] Implement ProjectileSource API. Addresses BUKKIT-1038, BUKKIT-1156

This commit is contained in:
t00thpick1 authored and Nate Mortensen committed 2014-01-30 21:47:44 -07:00
1 parent ac53442e7e
commit 8a5ad89a68
14 files changed
+277 -33

No files matched your search

@@ -25,6 +25,7 @@ public abstract class EntityProjectile extends Entity implements IProjectile {
public EntityProjectile(World world, EntityLiving entityliving) {
super(world);
this.shooter = entityliving;
this.projectileSource = (org.bukkit.entity.LivingEntity) entityliving.getBukkitEntity(); // CraftBukkit
this.a(0.25F, 0.25F);
this.setPositionRotation(entityliving.locX, entityliving.locY + (double) entityliving.getHeadHeight(), entityliving.locZ, entityliving.yaw, entityliving.pitch);
this.locX -= (double) (MathHelper.cos(this.yaw / 180.0F * 3.1415927F) * 0.16F);