TechReborn/src/main/java/techreborn/init/ModBlocks.java

73 lines
3.5 KiB
Java
Raw Normal View History

2015-04-11 18:03:14 +02:00
package techreborn.init;
2015-04-12 10:45:31 +02:00
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
2015-04-12 15:59:29 +02:00
import net.minecraft.item.ItemStack;
import net.minecraftforge.oredict.OreDictionary;
2015-04-11 18:03:14 +02:00
import techreborn.blocks.BlockOre;
import techreborn.blocks.BlockQuantumChest;
import techreborn.blocks.BlockQuantumTank;
2015-04-12 21:21:33 +02:00
import techreborn.blocks.BlockStorage;
2015-04-11 18:03:14 +02:00
import techreborn.blocks.BlockThermalGenerator;
import techreborn.client.TechRebornCreativeTab;
import techreborn.itemblocks.ItemBlockOre;
import techreborn.itemblocks.ItemBlockQuantumChest;
import techreborn.itemblocks.ItemBlockQuantumTank;
2015-04-12 21:21:33 +02:00
import techreborn.itemblocks.ItemBlockStorage;
2015-04-11 18:03:14 +02:00
import techreborn.tiles.TileQuantumChest;
import techreborn.tiles.TileQuantumTank;
import techreborn.tiles.TileThermalGenerator;
2015-04-12 00:13:38 +02:00
import techreborn.util.LogHelper;
2015-04-12 15:59:29 +02:00
import cpw.mods.fml.common.registry.GameRegistry;
2015-04-11 18:03:14 +02:00
public class ModBlocks {
public static Block thermalGenerator;
public static Block quantumTank;
public static Block quantumChest;
public static Block ore;
2015-04-12 21:21:33 +02:00
public static Block storage;
2015-04-11 18:03:14 +02:00
public static void init()
{
2015-04-11 19:11:37 +02:00
thermalGenerator = new BlockThermalGenerator().setBlockName("techreborn.thermalGenerator").setBlockTextureName("techreborn:ThermalGenerator_other").setCreativeTab(TechRebornCreativeTab.instance);
GameRegistry.registerBlock(thermalGenerator, "techreborn.thermalGenerator");
GameRegistry.registerTileEntity(TileThermalGenerator.class, "TileThermalGenerator");
2015-04-11 18:03:14 +02:00
2015-04-11 19:11:37 +02:00
quantumTank = new BlockQuantumTank().setBlockName("techreborn.quantumTank").setBlockTextureName("techreborn:quantumTank").setCreativeTab(TechRebornCreativeTab.instance);
GameRegistry.registerBlock(quantumTank, ItemBlockQuantumTank.class, "techreborn.quantumTank");
2015-04-11 19:11:37 +02:00
GameRegistry.registerTileEntity(TileQuantumTank.class, "TileQuantumTank");
2015-04-11 18:03:14 +02:00
2015-04-11 19:11:37 +02:00
quantumChest = new BlockQuantumChest().setBlockName("techreborn.quantumChest").setBlockTextureName("techreborn:quantumChest").setCreativeTab(TechRebornCreativeTab.instance);
GameRegistry.registerBlock(quantumChest, ItemBlockQuantumChest.class, "techreborn.quantumChest");
2015-04-11 19:11:37 +02:00
GameRegistry.registerTileEntity(TileQuantumChest.class, "TileQuantumChest");
2015-04-11 18:03:14 +02:00
2015-04-11 19:11:37 +02:00
ore = new BlockOre(Material.rock);
GameRegistry.registerBlock(ore, ItemBlockOre.class, "techreborn.ore");
2015-04-12 00:13:38 +02:00
LogHelper.info("TechReborns Blocks Loaded");
2015-04-12 21:21:33 +02:00
storage = new BlockStorage(Material.rock);
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
LogHelper.info("TechReborns Blocks Loaded");
2015-04-12 00:13:38 +02:00
2015-04-11 19:11:37 +02:00
registerOreDict();
}
public static void registerOreDict()
{
2015-04-12 16:53:22 +02:00
OreDictionary.registerOre("oreGalena", new ItemStack(ore,1,0));
OreDictionary.registerOre("oreIridium", new ItemStack(ore,1,1));
OreDictionary.registerOre("oreRuby", new ItemStack(ore,1,2));
OreDictionary.registerOre("oreSapphire", new ItemStack(ore,1,3));
OreDictionary.registerOre("oreBauxite", new ItemStack(ore,1,4));
OreDictionary.registerOre("orePyrite", new ItemStack(ore,1,5));
OreDictionary.registerOre("oreCinnabar", new ItemStack(ore,1,6));
OreDictionary.registerOre("oreSphalerite", new ItemStack(ore,1,7));
OreDictionary.registerOre("oreTungston", new ItemStack(ore,1,8));
OreDictionary.registerOre("oreSheldonite", new ItemStack(ore,1,9));
OreDictionary.registerOre("oreOlivine", new ItemStack(ore,1,10));
OreDictionary.registerOre("oreSodalite", new ItemStack(ore,1,11));
2015-04-11 18:03:14 +02:00
}
}