Config stuff for pillars.
This commit is contained in:
parent
7d49448a22
commit
009c377143
4 changed files with 15 additions and 4 deletions
|
|
@ -28,8 +28,8 @@ public class BlockHandler {
|
||||||
bush = new BlockBush(BlockIds.BUSH).setUnlocalizedName(Strings.BUSH_NAME);
|
bush = new BlockBush(BlockIds.BUSH).setUnlocalizedName(Strings.BUSH_NAME);
|
||||||
lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME);
|
lightCube = new BlockLightCube(BlockIds.LIGHT_CUBE).setUnlocalizedName(Strings.LIGHT_CUBE_NAME);
|
||||||
|
|
||||||
pillarPlatform = new BlockPillarPlatform(614).setUnlocalizedName("pillarPlatform");
|
pillarPlatform = new BlockPillarPlatform(BlockIds.PILLAR_PLATFORM).setUnlocalizedName(Strings.PILLAR_PLATFORM_NAME);
|
||||||
pillarTower = new BlockPillarTower(615).setUnlocalizedName("pillarTower");
|
pillarTower = new BlockPillarTower(BlockIds.PILLAR_TOWER).setUnlocalizedName(Strings.PILLAR_TOWER_NAME);
|
||||||
|
|
||||||
registerBlocks();
|
registerBlocks();
|
||||||
setBlockHarvestLevels();
|
setBlockHarvestLevels();
|
||||||
|
|
@ -40,8 +40,8 @@ public class BlockHandler {
|
||||||
GameRegistry.registerBlock(bush, ItemBlockBush.class, Strings.BUSH_NAME);
|
GameRegistry.registerBlock(bush, ItemBlockBush.class, Strings.BUSH_NAME);
|
||||||
GameRegistry.registerBlock(lightCube, Strings.LIGHT_CUBE_NAME);
|
GameRegistry.registerBlock(lightCube, Strings.LIGHT_CUBE_NAME);
|
||||||
|
|
||||||
GameRegistry.registerBlock(pillarPlatform, "pillarPlatform");
|
GameRegistry.registerBlock(pillarPlatform, Strings.PILLAR_PLATFORM_NAME);
|
||||||
GameRegistry.registerBlock(pillarTower, "pillarTower");
|
GameRegistry.registerBlock(pillarTower, Strings.PILLAR_TOWER_NAME);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void setBlockHarvestLevels() {
|
private static void setBlockHarvestLevels() {
|
||||||
|
|
|
||||||
|
|
@ -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.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.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.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
|
//Item Configuration
|
||||||
ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD_DEFAULT).getInt(ItemIds.IMBUED_SHARD_DEFAULT);
|
ItemIds.IMBUED_SHARD = config.getItem(Strings.IMBUED_SHARD_NAME, ItemIds.IMBUED_SHARD_DEFAULT).getInt(ItemIds.IMBUED_SHARD_DEFAULT);
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ public class BlockIds {
|
||||||
|
|
||||||
public static int LIGHT_CUBE_DEFAULT = 613;
|
public static int LIGHT_CUBE_DEFAULT = 613;
|
||||||
|
|
||||||
|
public static int PILLAR_PLATFORM_DEFAULT = 614;
|
||||||
|
public static int PILLAR_TOWER_DEFAULT = 615;
|
||||||
|
|
||||||
//Current Block IDs
|
//Current Block IDs
|
||||||
public static int ORE_STONE_1;
|
public static int ORE_STONE_1;
|
||||||
|
|
||||||
|
|
@ -38,4 +41,7 @@ public class BlockIds {
|
||||||
|
|
||||||
public static int LIGHT_CUBE;
|
public static int LIGHT_CUBE;
|
||||||
|
|
||||||
|
public static int PILLAR_PLATFORM;
|
||||||
|
public static int PILLAR_TOWER;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -20,6 +20,9 @@ public class Strings {
|
||||||
|
|
||||||
public static final String LIGHT_CUBE_NAME = "lightCube";
|
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
|
//Item Names
|
||||||
public static final String STAFF_HILT_NAME = "staffHilt";
|
public static final String STAFF_HILT_NAME = "staffHilt";
|
||||||
public static final String STAFF_HANDLE_NAME = "staffHandle";
|
public static final String STAFF_HANDLE_NAME = "staffHandle";
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue