- 1
- 0

import cpw.mods.fml.common.registry.GameRegistry;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.creativetab.CreativeTabs;
public class BlockTut3<IBlockState, BlockRenderLayer> extends Block {
private static final String BlockRenderLayer = null;
@Override
public boolean isOpaqueCube() {
return false;
}
@SideOnly(Side.CLIENT)
public BlockRenderLayer getBlockLayer()
{
return (BlockRenderLayer) BlockRenderLayer;
}
protected BlockTut3(Material p_i45394_1_, String name, String texture) {
super(p_i45394_1_);
this.setBlockName(name);
this.setLightLevel(0F);
this.setLightOpacity(10);
this.setHardness(1.0F);
this.setCreativeTab(CreativeTabs.tabBlock);
this.setResistance(10.0F);
this.setHarvestLevel("Pickaxe", 3);
this.setStepSound(soundTypeGlass);
//this.setBlockUnbreakable();
this.setBlockTextureName(Main.MODID+":brick3/"+texture);
GameRegistry.registerBlock(this, name);
}
}