BiomesOPlenty/common/biomesoplenty/itemblocks/ItemBlockMoss.java

32 lines
631 B
Java
Raw Normal View History

2013-07-03 07:51:39 +00:00
package biomesoplenty.itemblocks;
2013-05-03 13:00:44 +00:00
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.item.ItemBlock;
import net.minecraft.util.Icon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
2013-07-03 07:51:39 +00:00
public class ItemBlockMoss extends ItemBlock
2013-05-03 13:00:44 +00:00
{
2013-05-31 10:34:02 +00:00
@SideOnly(Side.CLIENT)
private Icon texture;
2013-07-03 07:51:39 +00:00
public ItemBlockMoss(int par1)
2013-05-31 10:34:02 +00:00
{
super(par1);
}
@Override
@SideOnly(Side.CLIENT)
public void registerIcons(IconRegister iconRegister)
{
texture = iconRegister.registerIcon("biomesoplenty:item_moss");
2013-05-31 10:34:02 +00:00
}
@Override
public Icon getIconFromDamage(int meta)
{
return texture;
}
2013-05-03 13:00:44 +00:00
}