Entities (20 errors)

This commit is contained in:
WayofTime 2016-03-18 16:57:57 -04:00
parent ac3ac8d272
commit 966f663270
2 changed files with 19 additions and 17 deletions

View file

@ -1,12 +1,14 @@
package WayofTime.bloodmagic.entity.projectile;
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.api.soul.PlayerDemonWillHandler;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.projectile.EntityArrow;
import net.minecraft.init.Items;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import WayofTime.bloodmagic.api.soul.EnumDemonWillType;
import WayofTime.bloodmagic.api.soul.PlayerDemonWillHandler;
public class EntitySentientArrow extends EntityArrow
{
@ -22,15 +24,9 @@ public class EntitySentientArrow extends EntityArrow
super(worldIn, x, y, z);
}
public EntitySentientArrow(World worldIn, EntityLivingBase shooter, EntityLivingBase p_i1755_3_, float p_i1755_4_, float p_i1755_5_)
public EntitySentientArrow(World worldIn, EntityLivingBase shooter, double reimbursement)
{
super(worldIn, shooter, p_i1755_3_, p_i1755_4_, p_i1755_5_);
}
public EntitySentientArrow(World worldIn, EntityLivingBase shooter, float velocity, double reimbursement)
{
super(worldIn, shooter, velocity);
this(worldIn, shooter.posX, shooter.posY, shooter.posZ);
this.reimbursedAmountOnHit = reimbursement;
}
@ -57,4 +53,10 @@ public class EntitySentientArrow extends EntityArrow
reimbursedAmountOnHit = tag.getDouble("reimbursement");
}
@Override
protected ItemStack getArrowStack()
{
return new ItemStack(Items.arrow);
}
}