From 891b4e26236eeb62a4823467fa32003e36a193fa Mon Sep 17 00:00:00 2001 From: allstar69 Date: Sun, 7 Jul 2013 01:25:26 -0700 Subject: [PATCH] Changed shooting entity from EntityLiving to EntityPlayer --- common/MysticWorld/Entity/EntityChargeAir.java | 8 ++++---- common/MysticWorld/Entity/EntityChargeEarth.java | 8 ++++---- common/MysticWorld/Entity/EntityChargeEnergy.java | 8 ++++---- common/MysticWorld/Entity/EntityChargeFire.java | 8 ++++---- common/MysticWorld/Entity/EntityChargeWater.java | 8 ++++---- 5 files changed, 20 insertions(+), 20 deletions(-) diff --git a/common/MysticWorld/Entity/EntityChargeAir.java b/common/MysticWorld/Entity/EntityChargeAir.java index 2bb1d14..134c231 100644 --- a/common/MysticWorld/Entity/EntityChargeAir.java +++ b/common/MysticWorld/Entity/EntityChargeAir.java @@ -35,7 +35,7 @@ import MysticWorld.MysticWorld; public class EntityChargeAir extends Entity { - public EntityLiving shootingEntity; + public EntityPlayer shootingEntity; public EntityPlayer entityPlayer; public EntityDragon entityDragon; public EntityWither entityWither; @@ -52,16 +52,16 @@ public class EntityChargeAir extends Entity { super(par1World); } - public EntityChargeAir(World par1World, EntityLiving par2EntityLiving) + public EntityChargeAir(World par1World, EntityPlayer par2EntityPlayer) { super(par1World); this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY + (double)par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ, par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + (double)par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); this.setPosition(this.posX, this.posY, this.posZ); this.motionX = (double)(-MathHelper.sin(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); this.motionY = (double)(-MathHelper.sin((this.rotationPitch) / 180.0F * (float)Math.PI)); this.motionZ = (double)(MathHelper.cos(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); - this.shootingEntity = par2EntityLiving; + this.shootingEntity = par2EntityPlayer; } public void onUpdate() diff --git a/common/MysticWorld/Entity/EntityChargeEarth.java b/common/MysticWorld/Entity/EntityChargeEarth.java index 899ca97..7133159 100644 --- a/common/MysticWorld/Entity/EntityChargeEarth.java +++ b/common/MysticWorld/Entity/EntityChargeEarth.java @@ -35,7 +35,7 @@ import net.minecraftforge.common.ForgeHooks; public class EntityChargeEarth extends Entity { - public EntityLiving shootingEntity; + public EntityPlayer shootingEntity; public EntityPlayer entityPlayer; public EntityDragon entityDragon; public EntityWither entityWither; @@ -52,16 +52,16 @@ public class EntityChargeEarth extends Entity { super(par1World); } - public EntityChargeEarth(World par1World, EntityLiving par2EntityLiving) + public EntityChargeEarth(World par1World, EntityPlayer par2EntityPlayer) { super(par1World); this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY + (double)par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ, par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + (double)par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); this.setPosition(this.posX, this.posY, this.posZ); this.motionX = (double)(-MathHelper.sin(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); this.motionY = (double)(-MathHelper.sin((this.rotationPitch) / 180.0F * (float)Math.PI)); this.motionZ = (double)(MathHelper.cos(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); - this.shootingEntity = par2EntityLiving; + this.shootingEntity = par2EntityPlayer; } public void onUpdate() diff --git a/common/MysticWorld/Entity/EntityChargeEnergy.java b/common/MysticWorld/Entity/EntityChargeEnergy.java index e48d106..c3e3ab6 100644 --- a/common/MysticWorld/Entity/EntityChargeEnergy.java +++ b/common/MysticWorld/Entity/EntityChargeEnergy.java @@ -28,7 +28,7 @@ import net.minecraft.world.World; public class EntityChargeEnergy extends Entity { - public EntityLiving shootingEntity; + public EntityPlayer shootingEntity; private boolean inGround = false; private int xTile = -1; private int yTile = -1; @@ -42,16 +42,16 @@ public class EntityChargeEnergy extends Entity { super(par1World); } - public EntityChargeEnergy(World par1World, EntityLiving par2EntityLiving) + public EntityChargeEnergy(World par1World, EntityPlayer par2EntityPlayer) { super(par1World); this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY + (double)par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ, par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + (double)par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); this.setPosition(this.posX, this.posY, this.posZ); this.motionX = (double)(-MathHelper.sin(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); this.motionY = (double)(-MathHelper.sin((this.rotationPitch) / 180.0F * (float)Math.PI)); this.motionZ = (double)(MathHelper.cos(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); - this.shootingEntity = par2EntityLiving; + this.shootingEntity = par2EntityPlayer; } public void onUpdate() diff --git a/common/MysticWorld/Entity/EntityChargeFire.java b/common/MysticWorld/Entity/EntityChargeFire.java index daa8867..a2791f8 100644 --- a/common/MysticWorld/Entity/EntityChargeFire.java +++ b/common/MysticWorld/Entity/EntityChargeFire.java @@ -27,7 +27,7 @@ import net.minecraft.world.World; public class EntityChargeFire extends Entity { - public EntityLiving shootingEntity; + public EntityPlayer shootingEntity; private boolean inGround = false; private int xTile = -1; private int yTile = -1; @@ -41,16 +41,16 @@ public class EntityChargeFire extends Entity { super(par1World); } - public EntityChargeFire(World par1World, EntityLiving par2EntityLiving) + public EntityChargeFire(World par1World, EntityPlayer par2EntityPlayer) { super(par1World); this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY + (double)par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ, par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + (double)par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); this.setPosition(this.posX, this.posY, this.posZ); this.motionX = (double)(-MathHelper.sin(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); this.motionY = (double)(-MathHelper.sin((this.rotationPitch) / 180.0F * (float)Math.PI)); this.motionZ = (double)(MathHelper.cos(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); - this.shootingEntity = par2EntityLiving; + this.shootingEntity = par2EntityPlayer; } public void onUpdate() diff --git a/common/MysticWorld/Entity/EntityChargeWater.java b/common/MysticWorld/Entity/EntityChargeWater.java index c4664c5..c1b35bc 100644 --- a/common/MysticWorld/Entity/EntityChargeWater.java +++ b/common/MysticWorld/Entity/EntityChargeWater.java @@ -27,7 +27,7 @@ import net.minecraft.world.World; public class EntityChargeWater extends Entity { - public EntityLiving shootingEntity; + public EntityPlayer shootingEntity; private boolean inGround = false; private int xTile = -1; private int yTile = -1; @@ -41,16 +41,16 @@ public class EntityChargeWater extends Entity { super(par1World); } - public EntityChargeWater(World par1World, EntityLiving par2EntityLiving) + public EntityChargeWater(World par1World, EntityPlayer par2EntityPlayer) { super(par1World); this.setSize(0.25F, 0.25F); - this.setLocationAndAngles(par2EntityLiving.posX, par2EntityLiving.posY + (double)par2EntityLiving.getEyeHeight(), par2EntityLiving.posZ, par2EntityLiving.rotationYaw, par2EntityLiving.rotationPitch); + this.setLocationAndAngles(par2EntityPlayer.posX, par2EntityPlayer.posY + (double)par2EntityPlayer.getEyeHeight(), par2EntityPlayer.posZ, par2EntityPlayer.rotationYaw, par2EntityPlayer.rotationPitch); this.setPosition(this.posX, this.posY, this.posZ); this.motionX = (double)(-MathHelper.sin(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); this.motionY = (double)(-MathHelper.sin((this.rotationPitch) / 180.0F * (float)Math.PI)); this.motionZ = (double)(MathHelper.cos(this.rotationYaw / 180.0F * (float)Math.PI) * MathHelper.cos(this.rotationPitch / 180.0F * (float)Math.PI)); - this.shootingEntity = par2EntityLiving; + this.shootingEntity = par2EntityPlayer; } public void onUpdate()