Config stuff for pillars.

This commit is contained in:
allstar69 2013-07-12 00:20:37 -07:00
commit 009c377143
4 changed files with 15 additions and 4 deletions

View file

@ -28,8 +28,8 @@ public class BlockHandler {
bush = new BlockBush(BlockIds.BUSH).setUnlocalizedName(Strings.BUSH_NAME);
lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME);
pillarPlatform = new BlockPillarPlatform(614).setUnlocalizedName("pillarPlatform");
pillarTower = new BlockPillarTower(615).setUnlocalizedName("pillarTower");
pillarPlatform = new BlockPillarPlatform(BlockIds.PILLAR_PLATFORM).setUnlocalizedName(Strings.PILLAR_PLATFORM_NAME);
pillarTower = new BlockPillarTower(BlockIds.PILLAR_TOWER).setUnlocalizedName(Strings.PILLAR_TOWER_NAME);
registerBlocks();
setBlockHarvestLevels();
@ -40,8 +40,8 @@ public class BlockHandler {
GameRegistry.registerBlock(bush, ItemBlockBush.class, Strings.BUSH_NAME);
GameRegistry.registerBlock(lightCube, Strings.LIGHT_CUBE_NAME);
GameRegistry.registerBlock(pillarPlatform, "pillarPlatform");
GameRegistry.registerBlock(pillarTower, "pillarTower");
GameRegistry.registerBlock(pillarPlatform, Strings.PILLAR_PLATFORM_NAME);
GameRegistry.registerBlock(pillarTower, Strings.PILLAR_TOWER_NAME);
}
private static void setBlockHarvestLevels() {

View file

@ -30,6 +30,8 @@ public class Config
BlockIds.ORE_STONE_1 = config.getBlock(Strings.IMBUED_STONE_NAME, BlockIds.ORE_STONE_1_DEFAULT).getInt(BlockIds.ORE_STONE_1);
BlockIds.BUSH = config.getBlock(Strings.BUSH_NAME, BlockIds.BUSH_DEFAULT).getInt(BlockIds.BUSH_DEFAULT);
BlockIds.LIGHT_CUBE = config.getBlock(Strings.LIGHT_CUBE_NAME, BlockIds.LIGHT_CUBE_DEFAULT).getInt(BlockIds.LIGHT_CUBE_DEFAULT);
BlockIds.PILLAR_PLATFORM = config.getBlock(Strings.PILLAR_PLATFORM_NAME, BlockIds.PILLAR_PLATFORM_DEFAULT).getInt(BlockIds.PILLAR_PLATFORM_DEFAULT);
BlockIds.PILLAR_TOWER = config.getBlock(Strings.PILLAR_TOWER_NAME, BlockIds.PILLAR_TOWER_DEFAULT).getInt(BlockIds.PILLAR_TOWER_DEFAULT);
//Item Configuration
ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD_DEFAULT).getInt(ItemIds.IMBUED_SHARD_DEFAULT);

View file

@ -19,6 +19,9 @@ public class BlockIds {
public static int INVISIBILITY_BUSH_DEFAULT = 612;
public static int LIGHT_CUBE_DEFAULT = 613;
public static int PILLAR_PLATFORM_DEFAULT = 614;
public static int PILLAR_TOWER_DEFAULT = 615;
//Current Block IDs
public static int ORE_STONE_1;
@ -38,4 +41,7 @@ public class BlockIds {
public static int LIGHT_CUBE;
public static int PILLAR_PLATFORM;
public static int PILLAR_TOWER;
}

View file

@ -20,6 +20,9 @@ public class Strings {
public static final String LIGHT_CUBE_NAME = "lightCube";
public static final String PILLAR_PLATFORM_NAME = "pillarPlatform";
public static final String PILLAR_TOWER_NAME = "pillarTower";
//Item Names
public static final String STAFF_HILT_NAME = "staffHilt";
public static final String STAFF_HANDLE_NAME = "staffHandle";