BiomesOPlenty/src/minecraft/biomesoplenty/items/ItemShroomPowder.java

24 lines
625 B
Java
Raw Normal View History

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;
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);
2013-06-09 08:15:39 +00:00
setAlwaysEdible();
2013-05-03 13:00:44 +00:00
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
}
}