From 009c377143c102d8a80637ca466335fc7e9fdf6c Mon Sep 17 00:00:00 2001 From: allstar69 Date: Fri, 12 Jul 2013 00:20:37 -0700 Subject: [PATCH] Config stuff for pillars. --- common/MysticWorld/Blocks/BlockHandler.java | 8 ++++---- common/MysticWorld/Config.java | 2 ++ common/MysticWorld/Lib/BlockIds.java | 6 ++++++ common/MysticWorld/Lib/Strings.java | 3 +++ 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/common/MysticWorld/Blocks/BlockHandler.java b/common/MysticWorld/Blocks/BlockHandler.java index ef2ae61..a2102b6 100644 --- a/common/MysticWorld/Blocks/BlockHandler.java +++ b/common/MysticWorld/Blocks/BlockHandler.java @@ -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() { diff --git a/common/MysticWorld/Config.java b/common/MysticWorld/Config.java index 38a5ca8..c06d9cc 100644 --- a/common/MysticWorld/Config.java +++ b/common/MysticWorld/Config.java @@ -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); diff --git a/common/MysticWorld/Lib/BlockIds.java b/common/MysticWorld/Lib/BlockIds.java index cb45438..ef8c27b 100644 --- a/common/MysticWorld/Lib/BlockIds.java +++ b/common/MysticWorld/Lib/BlockIds.java @@ -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; + } diff --git a/common/MysticWorld/Lib/Strings.java b/common/MysticWorld/Lib/Strings.java index b1f80f2..bd1e655 100644 --- a/common/MysticWorld/Lib/Strings.java +++ b/common/MysticWorld/Lib/Strings.java @@ -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";