2013-10-12 15:33:35 +01:00
|
|
|
package tconstruct.blocks;
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.BlockLadder;
|
|
|
|
|
import net.minecraft.block.material.Material;
|
2013-12-31 11:26:08 -05:00
|
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
2013-10-12 15:33:35 +01:00
|
|
|
import net.minecraft.creativetab.CreativeTabs;
|
2013-12-31 11:26:08 -05:00
|
|
|
import net.minecraft.util.IIcon;
|
2013-10-12 15:33:35 +01:00
|
|
|
|
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
|
2013-12-31 11:26:08 -05:00
|
|
|
public StoneLadder()
|
2013-10-12 15:33:35 +01:00
|
|
|
{
|
2013-12-31 11:26:08 -05:00
|
|
|
super();
|
2013-10-12 15:33:35 +01:00
|
|
|
this.setUnlocalizedName("decoration.stoneladder");
|
|
|
|
|
this.setCreativeTab(CreativeTabs.tabDecorations);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-12-31 11:26:08 -05:00
|
|
|
public void registerIcons (IIconRegister register)
|
2013-10-12 15:33:35 +01:00
|
|
|
{
|
|
|
|
|
icon = register.registerIcon("tinker:ladder_stone");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
2013-12-31 11:26:08 -05:00
|
|
|
public IIcon getIcon (int meta, int side)
|
2013-10-12 15:33:35 +01:00
|
|
|
{
|
|
|
|
|
return icon;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|