mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-22 05:02:39 +00:00
Implement stone ladder
This commit is contained in:
1 parent
7530d0d151
commit
b2edbd816d
5 files changed
+42
No files matched your search
@@ -238,6 +238,7 @@ StorageMetals.Steel.name=Block of Steel
|
||||
StorageMetals.Ender.name=Block of Solid Ender
|
||||
|
||||
tile.decoration.stonetorch.name=Torch
|
||||
tile.decoration.stoneladder.name=Ladder
|
||||
tile.CraftingStation.name=Crafting Station
|
||||
|
||||
block.glass.pure.name=Clear Glass
|
||||
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 494 B After Width: | Height: | Size: 494 B |
@@ -0,0 +1,36 @@
|
||||
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;
|
||||
|
||||
public class StoneLadder extends BlockLadder {
|
||||
|
||||
// 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
|
||||
public void registerIcons(IconRegister register)
|
||||
{
|
||||
icon = register.registerIcon("tinker:ladder_stone");
|
||||
}
|
||||
|
||||
@Override
|
||||
public Icon getIcon(int meta, int side)
|
||||
{
|
||||
return icon;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -140,6 +140,7 @@ public class TContent implements IFuelHandler
|
||||
|
||||
//Decoration
|
||||
public static Block stoneTorch;
|
||||
public static Block stoneLadder;
|
||||
public static Block multiBrick;
|
||||
public static Block multiBrickFancy;
|
||||
|
||||
@@ -707,6 +708,8 @@ public class TContent implements IFuelHandler
|
||||
//Decoration
|
||||
stoneTorch = new StoneTorch(PHConstruct.stoneTorch).setUnlocalizedName("decoration.stonetorch");
|
||||
GameRegistry.registerBlock(stoneTorch, "decoration.stonetorch");
|
||||
stoneLadder = new StoneLadder(PHConstruct.stoneLadder).setUnlocalizedName("decoration.stoneladder");
|
||||
GameRegistry.registerBlock(stoneLadder, "decoration.stoneladder");
|
||||
|
||||
multiBrick = new MultiBrick(PHConstruct.multiBrick).setUnlocalizedName("Decoration.Brick");
|
||||
GameRegistry.registerBlock(multiBrick, MultiBrickItem.class, "decoration.multibrick");
|
||||
|
||||
@@ -88,6 +88,7 @@ public class PHConstruct
|
||||
multiBrick = config.getBlock("Multi Brick", 1481).getInt(1481);
|
||||
|
||||
stoneTorch = config.getBlock("Stone Torch", 1484).getInt(1484);
|
||||
stoneLadder = config.getBlock("Stone Ladder", 1479).getInt(1479);
|
||||
oreBerry = config.getBlock("Ore Berry One", 1485).getInt(1485);
|
||||
oreBerrySecond = config.getBlock("Ore Berry Two", 1486).getInt(1486);
|
||||
|
||||
@@ -473,6 +474,7 @@ public class PHConstruct
|
||||
|
||||
//Decoration
|
||||
public static int stoneTorch;
|
||||
public static int stoneLadder;
|
||||
public static int multiBrick;
|
||||
public static int multiBrickFancy;
|
||||
public static int redstoneBallRepeater;
|
||||
|
||||
Reference in new issue
Block a user