Files
TinkersConstruct/src/main/java/tconstruct/blocks/StoneLadder.java
T

37 lines
875 B
Java
Raw Normal View History

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;
2013-12-31 20:24:06 -05:00
private IIcon icon;
2013-10-12 15:33:35 +01:00
// 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;
}
}