28 lines
704 B
Java
28 lines
704 B
Java
![]() |
package WayofTime.alchemicalWizardry.common.items.potion;
|
||
|
|
||
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
||
|
import cpw.mods.fml.relauncher.Side;
|
||
|
import cpw.mods.fml.relauncher.SideOnly;
|
||
|
|
||
|
public class WeakBindingAgent extends StandardBindingAgent
|
||
|
{
|
||
|
public WeakBindingAgent()
|
||
|
{
|
||
|
super();
|
||
|
// TODO Auto-generated constructor stub
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public float getSuccessRateForPotionNumber(int potions)
|
||
|
{
|
||
|
return (float) Math.pow(0.4, potions);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
@SideOnly(Side.CLIENT)
|
||
|
public void registerIcons(IIconRegister iconRegister)
|
||
|
{
|
||
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:WeakBindingAgent");
|
||
|
}
|
||
|
}
|