Package net.minecraft.entity

Examples of net.minecraft.entity.EntityLiving.addPotionEffect()


        }

        if (entity instanceof EntityLiving)
        {
            EntityLiving living = (EntityLiving) entity;
            living.addPotionEffect(new PotionEffect(Potion.confusion.id, 100, 0));
        }
    }
}
View Full Code Here


    if(entity instanceof EntityPlayer || entity instanceof EntityMob && !((EntityLiving)entity).isEntityUndead())
    {
      EntityLiving ent = (EntityLiving)entity;
      if(blockID == MineFactoryReloadedCore.sludgeLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.weakness.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
View Full Code Here

    {
      EntityLiving ent = (EntityLiving)entity;
      if(blockID == MineFactoryReloadedCore.sludgeLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.weakness.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
View Full Code Here

      EntityLiving ent = (EntityLiving)entity;
      if(blockID == MineFactoryReloadedCore.sludgeLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.weakness.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
View Full Code Here

        ent.addPotionEffect(new PotionEffect(Potion.weakness.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.essenceLiquid.blockID)
      {
View Full Code Here

        ent.addPotionEffect(new PotionEffect(Potion.confusion.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.essenceLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.nightVision.id, 60 * 20, 0));
View Full Code Here

      }
      else if(blockID == MineFactoryReloadedCore.sewageLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.essenceLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.nightVision.id, 60 * 20, 0));
      }
View Full Code Here

        ent.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
        ent.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 12 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.essenceLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.nightVision.id, 60 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.milkLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 6 * 20, 0));
      }
View Full Code Here

      {
        ent.addPotionEffect(new PotionEffect(Potion.nightVision.id, 60 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.milkLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 6 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.biofuelLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 12 * 20, 0));
      }
View Full Code Here

      {
        ent.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 6 * 20, 0));
      }
      else if(blockID == MineFactoryReloadedCore.biofuelLiquid.blockID)
      {
        ent.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 12 * 20, 0));
      }
    }
    super.onEntityCollidedWithBlock(world, x, y, z, entity);
  }
 
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.