Block
package wsdec13.peter.blocks;
import net.minecraft.block.Block;
import net.minecraft.block.BlockFlower;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class TomatoBlock extends BlockFlower {
public TomatoBlock(int id) {
super(id, Material.plants);
this.setUnlocalizedName("PetersTomato");
this.setCreativeTab(CreativeTabs.tabBlock);
this.setHardness(0.0F);
this.setStepSound(soundGrassFootstep);
this.setUnlocalizedName("peterstomato");
this.setTextureName("peterstomato");
}
@Override public void registerIcons(IconRegister iconRegister)
{
this.blockIcon = iconRegister.registerIcon("wsdec13pcmod" + ":" + "peterstomato");
}
}