BloodMagic/BM_src/WayofTime/alchemicalWizardry/common/items/potion/EnhancedFillingAgent.java
Fenn e3644f2d2b Massive rework of configs, items and blocks.
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.
2014-01-17 21:05:38 +00:00

57 lines
1.3 KiB
Java

package WayofTime.alchemicalWizardry.common.items.potion;
import WayofTime.alchemicalWizardry.common.AlchemicalWizardry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.client.renderer.texture.IconRegister;
import java.util.Random;
public class EnhancedFillingAgent extends WeakFillingAgent {
public EnhancedFillingAgent(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<=5)
{
switch (potionEffects)
{
case 1:
return 6;
case 2:
return 4;
case 3:
return 3;
case 4:
return 2;
case 5:
return 2;
}
}
return 0;
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
this.itemIcon = iconRegister.registerIcon("AlchemicalWizardry:EnhancedFillingAgent");
}
}