BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/entity/mob/EntityShadeElemental.java

27 lines
1,019 B
Java
Raw Normal View History

2014-01-17 19:12:49 +00:00
package WayofTime.alchemicalWizardry.common.entity.mob;
2014-01-17 21:54:16 +00:00
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
2014-01-17 19:12:49 +00:00
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityLivingBase;
import net.minecraft.entity.monster.IMob;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import net.minecraft.world.World;
2014-01-17 21:43:13 +00:00
public class EntityShadeElemental extends EntityElemental implements IMob
{
2014-01-17 19:12:49 +00:00
public EntityShadeElemental(World world)
{
super(world, AlchemicalWizardry.entityShadeElementalID);
}
public void inflictEffectOnEntity(Entity target)
{
if (target instanceof EntityLivingBase)
{
((EntityLivingBase) target).addPotionEffect(new PotionEffect(Potion.blindness.id, 100, 1));
((EntityLivingBase) target).addPotionEffect(new PotionEffect(AlchemicalWizardry.customPotionInhibit.id, 150, 0));
((EntityLivingBase) target).addPotionEffect(new PotionEffect(Potion.nightVision.id, 100, 0));
2014-01-17 19:12:49 +00:00
}
}
}