2013-05-03 13:00:44 +00:00
|
|
|
package biomesoplenty.items;
|
|
|
|
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
import net.minecraft.item.ItemFood;
|
|
|
|
import net.minecraft.potion.Potion;
|
2013-05-29 01:05:27 +00:00
|
|
|
import biomesoplenty.BiomesOPlenty;
|
2013-05-03 13:00:44 +00:00
|
|
|
|
|
|
|
public class ItemShroomPowder extends ItemFood
|
|
|
|
{
|
|
|
|
public ItemShroomPowder(int par1, int par2, float par3, boolean par4)
|
|
|
|
{
|
|
|
|
super(par1, par2, par3, par4);
|
|
|
|
setPotionEffect(Potion.confusion.id, 30, 0, 0.6F);
|
|
|
|
setAlwaysEdible().setUnlocalizedName("shroomPowder");
|
|
|
|
setCreativeTab(BiomesOPlenty.tabBiomesOPlenty);
|
|
|
|
}
|
2013-05-31 10:34:02 +00:00
|
|
|
|
|
|
|
@Override
|
2013-05-03 13:00:44 +00:00
|
|
|
public void registerIcons(IconRegister iconRegister)
|
|
|
|
{
|
2013-05-31 10:34:02 +00:00
|
|
|
itemIcon = iconRegister.registerIcon("BiomesOPlenty:shroompowder");
|
2013-05-03 13:00:44 +00:00
|
|
|
}
|
|
|
|
}
|