Package powercrystals.minefactoryreloaded.farmables.drinkhandlers

Source Code of powercrystals.minefactoryreloaded.farmables.drinkhandlers.DrinkHandlerPinkSlime

package powercrystals.minefactoryreloaded.farmables.drinkhandlers;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.potion.Potion;
import net.minecraft.potion.PotionEffect;
import powercrystals.minefactoryreloaded.api.ILiquidDrinkHandler;

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));
  }
}
TOP

Related Classes of powercrystals.minefactoryreloaded.farmables.drinkhandlers.DrinkHandlerPinkSlime

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.