2014-01-17 19:12:49 +00:00
|
|
|
package WayofTime.alchemicalWizardry.common.entity.mob;
|
|
|
|
|
|
|
|
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.entity.EntityLivingBase;
|
|
|
|
import net.minecraft.entity.monster.IMob;
|
|
|
|
import net.minecraft.potion.PotionEffect;
|
|
|
|
import net.minecraft.world.World;
|
|
|
|
|
2014-01-17 21:43:13 +00:00
|
|
|
public class EntityFireElemental extends EntityElemental implements IMob
|
|
|
|
{
|
2014-01-17 19:12:49 +00:00
|
|
|
public EntityFireElemental(World world)
|
|
|
|
{
|
|
|
|
super(world, AlchemicalWizardry.entityFireElementalID);
|
|
|
|
this.isImmuneToFire = true;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void inflictEffectOnEntity(Entity target)
|
|
|
|
{
|
|
|
|
if (target instanceof EntityLivingBase)
|
|
|
|
{
|
2014-01-17 21:05:38 +00:00
|
|
|
((EntityLivingBase) target).setFire(10);
|
|
|
|
((EntityLivingBase) target).addPotionEffect(new PotionEffect(AlchemicalWizardry.customPotionInhibit.id, 150, 0));
|
2014-01-17 19:12:49 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|