Package net.minecraft.potion

Examples of net.minecraft.potion.PotionEffect


    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)
      {
        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));
      }
      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));
      }
    }
    super.onEntityCollidedWithBlock(world, x, y, z, entity);
  }
View Full Code Here


public class DrinkHandlerSludge implements ILiquidDrinkHandler
{
  @Override
  public void onDrink(EntityPlayer player)
  {
    player.addPotionEffect(new PotionEffect(Potion.poison.id, 40 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.blindness.id, 40 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.confusion.id, 40 * 20, 0));
  }
View Full Code Here

  @Override
  public void onDrink(EntityPlayer player)
  {
    player.heal(4);
    player.getFoodStats().addStats(4, 1.0F);
    player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 15 * 20, 2));
  }
View Full Code Here

public class DrinkHandlerBiofuel implements ILiquidDrinkHandler
{
  @Override
  public void onDrink(EntityPlayer player)
  {
    player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 40 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 40 * 20, 0));
  }
View Full Code Here

public class DrinkHandlerSewage implements ILiquidDrinkHandler
{
  @Override
  public void onDrink(EntityPlayer player)
  {
    player.addPotionEffect(new PotionEffect(Potion.confusion.id, 40 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.poison.id, 40 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.moveSlowdown.id, 40 * 20, 0));
  }
View Full Code Here

public class DrinkHandlerPinkSlime implements ILiquidDrinkHandler
{
  @Override
  public void onDrink(EntityPlayer player)
  {
    player.addPotionEffect(new PotionEffect(Potion.confusion.id, 24 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.poison.id, 12 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.hunger.id, 12 * 20, 0));
    player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 60 * 20, 2));
  }
View Full Code Here

public class DrinkHandlerChocolateMilk implements ILiquidDrinkHandler
{
  @Override
  public void onDrink(EntityPlayer player)
  {
    player.addPotionEffect(new PotionEffect(Potion.moveSpeed.id, 60 * 20, 3));
    player.addPotionEffect(new PotionEffect(Potion.digSpeed.id, 60 * 20, 2));
    player.addPotionEffect(new PotionEffect(Potion.regeneration.id, 5 * 20, 1));
  }
View Full Code Here

  public static Brew cleansing;

  public static Brew warpWard;

  public static void init() {
    speed = new BrewMod(LibBrewNames.SPEED, 0x59B7FF, 4000, new PotionEffect(Potion.moveSpeed.id, 1800, 1));
    strength = new BrewMod(LibBrewNames.STRENGTH, 0xEE3F3F, 4000, new PotionEffect(Potion.damageBoost.id, 1800, 1));
    haste = new BrewMod(LibBrewNames.HASTE, 0xF4A432, 4000, new PotionEffect(Potion.digSpeed.id, 1800, 1));
    healing = new BrewMod(LibBrewNames.HEALING, 0xFF5ECC, 6000, new PotionEffect(Potion.heal.id, 1, 1));
    jumpBoost = new BrewMod(LibBrewNames.JUMP_BOOST, 0x32F46D, 4000, new PotionEffect(Potion.jump.id, 1800, 1));
    regen = new BrewMod(LibBrewNames.REGEN, 0xFD6488, 7000, new PotionEffect(Potion.regeneration.id, 500, 1));
    regenWeak = new BrewMod(LibBrewNames.REGEN_WEAK, 0xFD6488, 9000, new PotionEffect(Potion.regeneration.id, 2400, 0));
    resistance = new BrewMod(LibBrewNames.RESISTANCE, 0xB44E17, 4000, new PotionEffect(Potion.resistance.id, 1800, 1));
    fireResistance = new BrewMod(LibBrewNames.FIRE_RESISTANCE, 0xF86900, 4000, new PotionEffect(Potion.fireResistance.id, 9600, 0));
    waterBreathing = new BrewMod(LibBrewNames.WATER_BREATHING, 0x84A7CF, 4000, new PotionEffect(Potion.waterBreathing.id, 9600, 0));
    invisibility = new BrewMod(LibBrewNames.INVISIBILITY, 0xAEAEAE, 8000, new PotionEffect(Potion.invisibility.id, 9600, 0));
    nightVision = new BrewMod(LibBrewNames.NIGHT_VISION, 0x7C4BEB, 4000, new PotionEffect(Potion.nightVision.id, 9600, 0));
    absorption = new BrewMod(LibBrewNames.ABSORPTION, 0xF2EB23, 7000, new PotionEffect(Potion.field_76444_x.id, 1800, 3)).setNotBloodPendantInfusable();

    /*soulCross = new BrewModPotion(LibBrewNames.SOUL_CROSS, 10000, new PotionEffect(ModPotions.soulCross.id, 1800, 0));
    featherfeet = new BrewModPotion(LibBrewNames.FEATHER_FEET, 7000, new PotionEffect(ModPotions.featherfeet.id, 1800, 0));
    emptiness = new BrewModPotion(LibBrewNames.EMPTINESS, 30000, new PotionEffect(ModPotions.emptiness.id, 7200, 0));
    fulfilment = new BrewModPotion(LibBrewNames.FULFILMENT, 20000, new PotionEffect(ModPotions.fulfilment.id, 7200, 0));
View Full Code Here

        warpWardPotion = potion;
        break;
      }

    if(warpWardPotion != null)
      warpWard = new BrewMod(LibBrewNames.WARP_WARD, 0xFBBDFF, 25000, new PotionEffect(warpWardPotion.id, 12000, 0)).setNotBloodPendantInfusable();
  }
View Full Code Here

      if(changeY)
        player.motionY = motionY;
      if(changeZ)
        player.motionZ = motionZ;

      PotionEffect effect = player.getActivePotionEffect(Potion.nightVision);
      if(effect == null) {
        PotionEffect neweffect = new PotionEffect(Potion.nightVision.id, Integer.MAX_VALUE, -42, true);
        player.addPotionEffect(neweffect);
      }

      if(player.getAir() == 1 && player instanceof EntityPlayer) {
        int mana = ManaItemHandler.requestMana(stack, (EntityPlayer) player, 300, true);
View Full Code Here

TOP

Related Classes of net.minecraft.potion.PotionEffect

Copyright © 2018 www.massapicom. 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.