2013-10-12 15:33:35 +01:00
|
|
|
package tconstruct.blocks;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.BlockLadder;
|
|
|
|
|
import net.minecraft.block.material.Material;
|
|
|
|
|
import net.minecraft.client.renderer.texture.IconRegister;
|
|
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
|
|
|
import net.minecraft.util.Icon;
|
|
|
|
|
|
2013-11-10 13:57:35 -08:00
|
|
|
public class StoneLadder extends BlockLadder
|
|
|
|
|
{
|
2013-10-12 15:33:35 +01:00
|
|
|
|
|
|
|
|
// Override ladder material
|
|
|
|
|
public final Material blockMaterial = Material.rock;
|
|
|
|
|
|
|
|
|
|
private Icon icon;
|
|
|
|
|
|
|
|
|
|
// Use the normally protected constructor
|
|
|
|
|
public StoneLadder(int id)
|
|
|
|
|
{
|
|
|
|
|
super(id);
|
|
|
|
|
this.setUnlocalizedName("decoration.stoneladder");
|
|
|
|
|
this.setCreativeTab(CreativeTabs.tabDecorations);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-11-10 13:57:35 -08:00
|
|
|
public void registerIcons (IconRegister register)
|
2013-10-12 15:33:35 +01:00
|
|
|
{
|
|
|
|
|
icon = register.registerIcon("tinker:ladder_stone");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-11-10 13:57:35 -08:00
|
|
|
public Icon getIcon (int meta, int side)
|
2013-10-12 15:33:35 +01:00
|
|
|
{
|
|
|
|
|
return icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|