
I redone where the items/blocsks are stored and how the configs are handled to clean up it and give space. You can change the config line to AWWayofTime if you want to keep the compatibility with old configs. Now you reference the blocks from the ModBlocks and Items from the ModItems.
26 lines
710 B
Java
26 lines
710 B
Java
package WayofTime.alchemicalWizardry.common.items.potion;
|
|
|
|
import cpw.mods.fml.relauncher.Side;
|
|
import cpw.mods.fml.relauncher.SideOnly;
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
public class WeakBindingAgent extends StandardBindingAgent {
|
|
public WeakBindingAgent(int id)
|
|
{
|
|
super(id);
|
|
// 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(IconRegister iconRegister)
|
|
{
|
|
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:WeakBindingAgent");
|
|
}
|
|
}
|