mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-13 17:04:24 +00:00
38 lines
875 B
Java
38 lines
875 B
Java
package tconstruct.blocks;
|
|
|
|
import net.minecraft.block.BlockLadder;
|
|
import net.minecraft.block.material.Material;
|
|
import net.minecraft.client.renderer.texture.IIconRegister;
|
|
import net.minecraft.creativetab.CreativeTabs;
|
|
import net.minecraft.util.IIcon;
|
|
|
|
public class StoneLadder extends BlockLadder
|
|
{
|
|
|
|
// Override ladder material
|
|
public final Material blockMaterial = Material.rock;
|
|
|
|
private IIcon icon;
|
|
|
|
// Use the normally protected constructor
|
|
public StoneLadder()
|
|
{
|
|
super();
|
|
this.setUnlocalizedName("decoration.stoneladder");
|
|
this.setCreativeTab(CreativeTabs.tabDecorations);
|
|
}
|
|
|
|
@Override
|
|
public void registerIcons (IIconRegister register)
|
|
{
|
|
icon = register.registerIcon("tinker:ladder_stone");
|
|
}
|
|
|
|
@Override
|
|
public IIcon getIcon (int meta, int side)
|
|
{
|
|
return icon;
|
|
}
|
|
|
|
}
|