Examples of addPotionEffect()


Examples of com.sijobe.spc.wrapper.Player.addPotionEffect()

               throw new CommandException("Could not parse strength argument.");
            }
         }
         if (id == null) {
            for (Integer i : Potion.getPotions().values()) {
               player.addPotionEffect(i, duration * 20, strength);
            }
         } else {
            player.addPotionEffect(id, duration * 20, strength);
         }
      } else {
View Full Code Here

Examples of com.sijobe.spc.wrapper.Player.addPotionEffect()

         if (id == null) {
            for (Integer i : Potion.getPotions().values()) {
               player.addPotionEffect(i, duration * 20, strength);
            }
         } else {
            player.addPotionEffect(id, duration * 20, strength);
         }
      } else {
         throw new CommandException("Invalid argument specified.");
      }
   }
View Full Code Here

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

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

    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

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

    {
      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

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

      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

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

        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

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

        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

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

      }
      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

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

        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
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.