aboutsummaryrefslogtreecommitdiff
path: root/src/Java/miscutil/core/block/ModBlocks.java
blob: 7f1df843beedb2a1b605ab366da589752deeb1b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package miscutil.core.block;

import miscutil.core.util.Utils;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import cpw.mods.fml.common.registry.GameRegistry;

public final class ModBlocks {

	//Blood Steel
	public static Block blockBloodSteel;
	public static Block blockStaballoy;
	public static Block blockToolBuilder;
	//public static Block blockBloodSteelChest;

	//BloodSteelorial Furnace
	//public static Block tutFurnace;
	//public static Block tutFurnaceActive;

	//BloodSteelorial Chest
	//public static Block tutChest;

	//Arcane Infuser
	//public static Block arcaneInfuser;
	//public static Block arcaneInfuserActive;
	
	//Block Storage
	//public static Block emxBlockStorage;


	public static void init() {
		Utils.LOG_INFO("Initializing Blocks.");
		//BloodSteelorial Furnace - Must Init blocks first as they're not static.  
		/** if (Strings.DEBUG){
			FMLLog.info("Loading Furnace.");}
		tutFurnace= new BloodSteelFurnace(false).setBlockName("BloodSteelFurnace").setCreativeTab(TMCreativeTabs.tabBlock);
		tutFurnaceActive= new BloodSteelFurnace(true).setBlockName("BloodSteelFurnaceActive");

		//Arcane Infuser - Must Init blocks first as they're not static.
		if (Strings.DEBUG){
			FMLLog.info("Loading Arcane Infuser.");}
		arcaneInfuser = new ArcaneInfuser(false).setBlockName("ArcaneInfuser").setCreativeTab(TMCreativeTabs.tabBlock);
		arcaneInfuserActive = new ArcaneInfuser(true).setBlockName("ArcaneInfuserActive");

		//Blood Steel Chest
		if (Strings.DEBUG){
			FMLLog.info("Loading Blood Steel Chest.");}
		tutChest = new BloodSteelChest(0).setBlockName("BloodSteelChest").setCreativeTab(TMCreativeTabs.tabBlock);

		 */
		//BlockStorage
		//emxBlockStorage = new BlockStorage();
		
		//Register Blocks next - TODO
		registerBlocks(); 
	}

	public static void registerBlocks(){
		
		Utils.LOG_INFO("Registering Blocks.");

		//Blood Steel Block
		GameRegistry.registerBlock(blockBloodSteel = new BasicBlock("blockBloodSteel", Material.iron), "blockBloodSteel");
		
		//Staballoy Block
		GameRegistry.registerBlock(blockStaballoy = new BasicBlock("blockStaballoy", Material.iron), "blockStaballoy");

		//Blood Steel Block //Name, Material, Hardness, Resistance, Light level, Tool, tool level, sound
		//GameRegistry.registerBlock(blockToolBuilder = new AdvancedBlock("blockToolBuilder", Material.circuits, TMCreativeTabs.tabMachines, 1F, 5F, 0F, "pickaxe", 1, Block.soundTypeWood), "blockToolBuilder");

		/** TODO re-enable blocks when working.


		//Blood Steel Chest
		GameRegistry.registerBlock(tutChest, tutChest.getUnlocalizedName());

		//BloodSteelorial Furnace
		GameRegistry.registerBlock(tutFurnace, tutFurnace.getUnlocalizedName());
		GameRegistry.registerBlock(tutFurnaceActive, tutFurnaceActive.getUnlocalizedName());

		//Arcane Infuser
		GameRegistry.registerBlock(arcaneInfuser, arcaneInfuser.getUnlocalizedName());
		GameRegistry.registerBlock(arcaneInfuserActive, arcaneInfuserActive.getUnlocalizedName());
		 **/
		
		//Block Storage
		//GameRegistry.registerBlock(emxBlockStorage, emxBlockStorage.getUnlocalizedName());
	}

}