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

236 lines
10 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-05-04 00:25:16 +02:00
import techreborn.blocks.BlockAlloyFurnace;
2015-04-24 16:01:19 +02:00
import techreborn.blocks.BlockAlloySmelter;
import techreborn.blocks.BlockAssemblingMachine;
2015-04-24 15:20:09 +02:00
import techreborn.blocks.BlockBlastFurnace;
import techreborn.blocks.BlockCentrifuge;
2015-05-04 00:30:44 +02:00
import techreborn.blocks.BlockChemicalReactor;
import techreborn.blocks.BlockChunkLoader;
import techreborn.blocks.BlockDieselGenerator;
2015-05-03 22:48:10 +02:00
import techreborn.blocks.BlockDragonEggSiphoner;
2015-04-28 00:43:55 +02:00
import techreborn.blocks.BlockGrinder;
import techreborn.blocks.BlockHighlyAdvancedMachine;
2015-04-28 00:43:55 +02:00
import techreborn.blocks.BlockImplosionCompressor;
2015-05-03 23:58:11 +02:00
import techreborn.blocks.BlockIndustrialElectrolyzer;
2015-05-04 00:34:49 +02:00
import techreborn.blocks.BlockLathe;
2015-04-24 15:20:09 +02:00
import techreborn.blocks.BlockMachineCasing;
2015-05-04 00:09:13 +02:00
import techreborn.blocks.BlockMagicEnergyAbsorber;
2015-05-03 23:15:39 +02:00
import techreborn.blocks.BlockMagicEnergyConverter;
2015-04-28 00:43:55 +02:00
import techreborn.blocks.BlockMatterFabricator;
2015-04-24 15:20:09 +02:00
import techreborn.blocks.BlockOre;
2015-05-04 00:37:30 +02:00
import techreborn.blocks.BlockPlateCuttingMachine;
2015-04-24 15:20:09 +02:00
import techreborn.blocks.BlockQuantumChest;
import techreborn.blocks.BlockQuantumTank;
import techreborn.blocks.BlockRollingMachine;
2015-05-04 00:13:45 +02:00
import techreborn.blocks.BlockSemiFluidGenerator;
2015-04-24 15:20:09 +02:00
import techreborn.blocks.BlockStorage;
import techreborn.blocks.BlockThermalGenerator;
2015-04-11 18:03:14 +02:00
import techreborn.client.TechRebornCreativeTab;
import techreborn.itemblocks.ItemBlockMachineCasing;
2015-04-11 18:03:14 +02:00
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-24 16:01:19 +02:00
import techreborn.tiles.TileAlloySmelter;
2015-04-24 15:20:09 +02:00
import techreborn.tiles.TileBlastFurnace;
import techreborn.tiles.TileCentrifuge;
import techreborn.tiles.TileChunkLoader;
2015-04-28 00:51:06 +02:00
import techreborn.tiles.TileGrinder;
import techreborn.tiles.TileImplosionCompressor;
2015-04-24 15:20:09 +02:00
import techreborn.tiles.TileMachineCasing;
2015-04-28 00:51:06 +02:00
import techreborn.tiles.TileMatterFabricator;
2015-04-24 15:20:09 +02:00
import techreborn.tiles.TileQuantumChest;
import techreborn.tiles.TileQuantumTank;
import techreborn.tiles.TileRollingMachine;
import techreborn.tiles.TileThermalGenerator;
2015-04-12 00:13:38 +02:00
import techreborn.util.LogHelper;
2015-04-24 15:20:09 +02:00
import cpw.mods.fml.common.registry.GameRegistry;
2015-04-11 18:03:14 +02:00
public class ModBlocks {
2015-04-15 17:23:12 +02:00
2015-04-24 15:20:09 +02:00
public static Block thermalGenerator;
public static Block quantumTank;
public static Block quantumChest;
public static Block centrifuge;
public static Block RollingMachine;
public static Block MachineCasing;
public static Block BlastFurnace;
2015-04-24 16:01:19 +02:00
public static Block AlloySmelter;
2015-04-28 00:43:55 +02:00
public static Block Grinder;
public static Block ImplosionCompressor;
public static Block MatterFabricator;
public static Block ChunkLoader;
public static Block HighAdvancedMachineBlock;
2015-05-03 22:48:10 +02:00
public static Block Dragoneggenergysiphoner;
2015-05-03 23:15:39 +02:00
public static Block Magicenergeyconverter;
public static Block AssemblyMachine;
public static Block DieselGenerator;
2015-05-03 23:58:11 +02:00
public static Block IndustrialElectrolyzer;
2015-05-04 00:09:13 +02:00
public static Block MagicalAbsorber;
2015-05-04 00:13:45 +02:00
public static Block Semifluidgenerator;
2015-05-04 00:25:16 +02:00
public static Block AlloyFurnace;
2015-05-04 00:30:44 +02:00
public static Block ChemicalReactor;
2015-05-04 00:34:49 +02:00
public static Block lathe;
2015-05-04 00:37:30 +02:00
public static Block platecuttingmachine;
2015-04-24 15:20:09 +02:00
public static Block ore;
public static Block storage;
public static void init()
{
thermalGenerator = new BlockThermalGenerator()
.setBlockName("techreborn.thermalGenerator")
.setBlockTextureName("techreborn:ThermalGenerator_other")
.setCreativeTab(TechRebornCreativeTab.instance);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(thermalGenerator, "techreborn.thermalGenerator");
GameRegistry.registerTileEntity(TileThermalGenerator.class, "TileThermalGenerator");
2015-04-24 15:20:09 +02:00
quantumTank = new BlockQuantumTank()
.setBlockName("techreborn.quantumTank")
.setBlockTextureName("techreborn:quantumTank")
.setCreativeTab(TechRebornCreativeTab.instance);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(quantumTank, ItemBlockQuantumTank.class, "techreborn.quantumTank");
GameRegistry.registerTileEntity(TileQuantumTank.class, "TileQuantumTank");
2015-04-24 15:20:09 +02:00
quantumChest = new BlockQuantumChest()
.setBlockName("techreborn.quantumChest")
.setBlockTextureName("techreborn:quantumChest")
.setCreativeTab(TechRebornCreativeTab.instance);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(quantumChest, ItemBlockQuantumChest.class, "techreborn.quantumChest");
GameRegistry.registerTileEntity(TileQuantumChest.class, "TileQuantumChest");
2015-04-24 15:20:09 +02:00
centrifuge = new BlockCentrifuge()
.setBlockName("techreborn.centrifuge")
.setBlockTextureName("techreborn:centrifuge")
.setCreativeTab(TechRebornCreativeTab.instance);
2015-04-28 00:43:55 +02:00
2015-04-24 15:20:09 +02:00
GameRegistry.registerBlock(centrifuge, "techreborn.centrifuge");
GameRegistry.registerTileEntity(TileCentrifuge.class, "TileCentrifuge");
2015-04-28 17:07:26 +02:00
RollingMachine = new BlockRollingMachine(Material.rock);
2015-04-24 15:20:09 +02:00
GameRegistry.registerBlock(RollingMachine, "rollingmachine");
2015-04-28 00:43:55 +02:00
GameRegistry.registerTileEntity(TileRollingMachine.class, "TileRollingMachine");
2015-04-24 15:20:09 +02:00
2015-04-28 17:07:26 +02:00
BlastFurnace = new BlockBlastFurnace(Material.rock);
2015-04-24 15:20:09 +02:00
GameRegistry.registerBlock(BlastFurnace, "blastFurnace");
2015-04-28 00:43:55 +02:00
GameRegistry.registerTileEntity(TileBlastFurnace.class, "TileBlastFurnace");
2015-04-24 16:01:19 +02:00
2015-04-28 17:07:26 +02:00
AlloySmelter = new BlockAlloySmelter(Material.rock);
2015-04-24 16:01:19 +02:00
GameRegistry.registerBlock(AlloySmelter, "alloySmelter");
GameRegistry.registerTileEntity(TileAlloySmelter.class, "TileAlloySmalter");
2015-04-28 00:43:55 +02:00
2015-04-28 17:07:26 +02:00
Grinder = new BlockGrinder(Material.rock);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(Grinder, "grinder");
2015-04-28 00:51:06 +02:00
GameRegistry.registerTileEntity(TileGrinder.class, "TileGrinder");
2015-04-28 00:43:55 +02:00
2015-04-28 17:07:26 +02:00
ImplosionCompressor = new BlockImplosionCompressor(Material.rock);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(ImplosionCompressor, "implosioncompressor");
2015-04-28 00:51:06 +02:00
GameRegistry.registerTileEntity(TileImplosionCompressor.class, "TileImplosionCompressor");
2015-04-28 00:43:55 +02:00
2015-04-28 17:07:26 +02:00
MatterFabricator = new BlockMatterFabricator(Material.rock);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(MatterFabricator, "matterfabricator");
2015-04-28 00:51:06 +02:00
GameRegistry.registerTileEntity(TileMatterFabricator.class, "TileMatterFabricator");
ChunkLoader = new BlockChunkLoader(Material.rock);
GameRegistry.registerBlock(ChunkLoader, "chunkloader");
GameRegistry.registerTileEntity(TileChunkLoader.class, "TileChunkLoader");
2015-04-24 15:20:09 +02:00
2015-04-28 17:07:26 +02:00
MachineCasing = new BlockMachineCasing(Material.rock);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(MachineCasing, ItemBlockMachineCasing.class, "machinecasing");
GameRegistry.registerTileEntity(TileMachineCasing.class, "TileMachineCasing");
2015-04-24 15:20:09 +02:00
ore = new BlockOre(Material.rock);
GameRegistry.registerBlock(ore, ItemBlockOre.class, "techreborn.ore");
LogHelper.info("TechReborns Blocks Loaded");
storage = new BlockStorage(Material.rock);
2015-04-28 00:43:55 +02:00
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
2015-04-24 15:20:09 +02:00
LogHelper.info("TechReborns Blocks Loaded");
HighAdvancedMachineBlock = new BlockHighlyAdvancedMachine(Material.rock);
GameRegistry.registerBlock(HighAdvancedMachineBlock, "highlyadvancedmachine");
2015-05-03 22:48:10 +02:00
Dragoneggenergysiphoner = new BlockDragonEggSiphoner(Material.rock);
GameRegistry.registerBlock(Dragoneggenergysiphoner, "dragoneggenergsiphon");
2015-05-03 23:15:39 +02:00
Magicenergeyconverter = new BlockMagicEnergyConverter(Material.rock);
GameRegistry.registerBlock(Magicenergeyconverter, "magicenergyconverter");
AssemblyMachine = new BlockAssemblingMachine(Material.rock);
GameRegistry.registerBlock(AssemblyMachine, "assemblymachine");
DieselGenerator = new BlockDieselGenerator(Material.rock);
GameRegistry.registerBlock(DieselGenerator, "dieselgenerator");
2015-05-03 23:58:11 +02:00
IndustrialElectrolyzer = new BlockIndustrialElectrolyzer(Material.rock);
GameRegistry.registerBlock(IndustrialElectrolyzer, "industrialelectrolyzer");
2015-05-04 00:09:13 +02:00
MagicalAbsorber = new BlockMagicEnergyAbsorber(Material.rock);
GameRegistry.registerBlock(MagicalAbsorber, "magicrnergyabsorber");
2015-05-04 00:13:45 +02:00
Semifluidgenerator = new BlockSemiFluidGenerator(Material.rock);
GameRegistry.registerBlock(Semifluidgenerator, "semifluidgenerator");
2015-05-04 00:25:16 +02:00
AlloyFurnace = new BlockAlloyFurnace(Material.rock);
GameRegistry.registerBlock(AlloyFurnace, "alloyfurnace");
2015-05-04 00:30:44 +02:00
ChemicalReactor = new BlockChemicalReactor(Material.rock);
GameRegistry.registerBlock(ChemicalReactor, "chemicalreactor");
2015-05-04 00:34:49 +02:00
lathe = new BlockLathe(Material.rock);
GameRegistry.registerBlock(lathe, "lathe");
2015-05-04 00:37:30 +02:00
platecuttingmachine = new BlockPlateCuttingMachine(Material.rock);
GameRegistry.registerBlock(platecuttingmachine, "platecuttingmachine");
2015-04-24 15:20:09 +02:00
registerOreDict();
}
public static void registerOreDict()
{
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));
OreDictionary.registerOre("blockSilver", new ItemStack(storage, 1, 0));
OreDictionary.registerOre("blockAluminium",
new ItemStack(storage, 1, 1));
OreDictionary
.registerOre("blockTitanium", new ItemStack(storage, 1, 2));
OreDictionary
.registerOre("blockSapphire", new ItemStack(storage, 1, 3));
OreDictionary.registerOre("blockRuby", new ItemStack(storage, 1, 4));
OreDictionary.registerOre("blockGreenSapphire", new ItemStack(storage,
1, 5));
OreDictionary.registerOre("blockChrome", new ItemStack(storage, 1, 6));
OreDictionary
.registerOre("blockElectrum", new ItemStack(storage, 1, 7));
OreDictionary
.registerOre("blockTungsten", new ItemStack(storage, 1, 8));
OreDictionary.registerOre("blockLead", new ItemStack(storage, 1, 9));
OreDictionary.registerOre("blockZinc", new ItemStack(storage, 1, 10));
OreDictionary.registerOre("blockBrass", new ItemStack(storage, 1, 11));
OreDictionary.registerOre("blockSteel", new ItemStack(storage, 1, 12));
OreDictionary.registerOre("blockPlatinum",
new ItemStack(storage, 1, 13));
OreDictionary.registerOre("blockNickel", new ItemStack(storage, 1, 14));
OreDictionary.registerOre("blockInvar", new ItemStack(storage, 1, 15));
}
2015-04-11 18:03:14 +02:00
}