From 70c1354a4a96698758a88c032866288f79de6f5a Mon Sep 17 00:00:00 2001 From: Benjamin Culkin Date: Sat, 24 Aug 2024 08:16:37 -0400 Subject: Initial commit --- .../fbs/entity/EntityMagicHealingBall.java | 135 +++++++++++++++++++++ 1 file changed, 135 insertions(+) create mode 100644 src/main/java/jp/plusplus/fbs/entity/EntityMagicHealingBall.java (limited to 'src/main/java/jp/plusplus/fbs/entity/EntityMagicHealingBall.java') diff --git a/src/main/java/jp/plusplus/fbs/entity/EntityMagicHealingBall.java b/src/main/java/jp/plusplus/fbs/entity/EntityMagicHealingBall.java new file mode 100644 index 0000000..3c58aa1 --- /dev/null +++ b/src/main/java/jp/plusplus/fbs/entity/EntityMagicHealingBall.java @@ -0,0 +1,135 @@ +package jp.plusplus.fbs.entity; + +import cpw.mods.fml.client.FMLClientHandler; +import cpw.mods.fml.relauncher.Side; +import cpw.mods.fml.relauncher.SideOnly; +import jp.plusplus.fbs.event.FBSEventHandler; +import jp.plusplus.fbs.particle.EntityTracksFX; +import jp.plusplus.fbs.particle.EntityTrajectoryFX; +import net.minecraft.client.entity.EntityClientPlayerMP; +import net.minecraft.entity.Entity; +import net.minecraft.entity.EntityLiving; +import net.minecraft.entity.EntityLivingBase; +import net.minecraft.entity.player.EntityPlayer; +import net.minecraft.entity.player.EntityPlayerMP; +import net.minecraft.nbt.NBTTagCompound; +import net.minecraft.potion.Potion; +import net.minecraft.potion.PotionEffect; +import net.minecraft.util.*; +import net.minecraft.world.World; + +import java.util.LinkedList; + +/** + * Createdby pluslus_Fon 2015/06/14. + */ +public class EntityMagicHealingBall extends EntityMagicProjectileBase { + LinkedList entityIds=new LinkedList(); + int amplifier; + + public EntityMagicHealingBall(World p_i1582_1_) { + super(p_i1582_1_); + this.setSize(0.25F, 0.25F); + } + public EntityMagicHealingBall(World par1World, EntityLivingBase par2EntityLivingBase, int amp) { + super(par1World, par2EntityLivingBase, 0, 0, 0, 0, 0); + amplifier=amp; + setPosition(posX, posY - 0.2D, posZ); + this.setSize(0.8F, 0.8F); + } + + @Override + protected void readEntityFromNBT(NBTTagCompound nbt) { + super.readEntityFromNBT(nbt); + amplifier=nbt.getInteger("Amplifier"); + + entityIds=new LinkedList(); + int s=nbt.getInteger("ListSize"); + for(int i=0;i