BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/items/potion/StandardFillingAgent.java

40 lines
1 KiB
Java
Raw Normal View History

2014-01-17 19:12:49 +00:00
package WayofTime.alchemicalWizardry.common.items.potion;
2014-01-17 21:54:16 +00:00
import WayofTime.alchemicalWizardry.AlchemicalWizardry;
2014-01-17 19:12:49 +00:00
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
2014-01-17 19:12:49 +00:00
2014-01-17 21:43:13 +00:00
public class StandardFillingAgent extends WeakFillingAgent
{
2014-01-17 19:12:49 +00:00
public StandardFillingAgent(int par1)
{
super(par1);
setCreativeTab(AlchemicalWizardry.tabBloodMagic);
}
@Override
public int getFilledAmountForPotionNumber(int potionEffects)
{
//Random rand = new Random();
if (potionEffects == 0)
{
return 8;
}
if (potionEffects >= 1 && potionEffects <= 3)
{
return (int) (4 * (Math.pow(0.5f, potionEffects - 1) + 0.01f));
2014-01-17 19:12:49 +00:00
}
return 0;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:StandardFillingAgent");
}
}