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

379 lines
19 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-05-07 19:39:47 +02:00
import net.minecraft.init.Blocks;
2015-04-12 15:59:29 +02:00
import net.minecraft.item.ItemStack;
2015-11-23 20:19:18 +01:00
import net.minecraftforge.fml.common.registry.GameRegistry;
2015-04-12 15:59:29 +02:00
import net.minecraftforge.oredict.OreDictionary;
import reborncore.common.tile.TileMachineBase;
2015-11-08 13:15:45 +01:00
import techreborn.Core;
2016-02-24 09:18:21 +01:00
import techreborn.blocks.*;
import techreborn.blocks.generator.*;
import techreborn.blocks.machine.*;
2015-05-08 01:39:17 +02:00
import techreborn.blocks.storage.BlockAesu;
import techreborn.blocks.storage.BlockIDSU;
import techreborn.blocks.storage.BlockLesu;
import techreborn.blocks.storage.BlockLesuStorage;
import techreborn.blocks.teir1.BlockCompressor;
import techreborn.blocks.teir1.BlockElectricFurnace;
import techreborn.blocks.teir1.BlockExtractor;
2016-02-20 01:57:57 +01:00
import techreborn.blocks.teir1.BlockGrinder;
2016-02-24 09:18:21 +01:00
import techreborn.itemblocks.*;
import techreborn.tiles.*;
import techreborn.tiles.fusionReactor.TileEntityFusionController;
2016-02-24 09:18:21 +01:00
import techreborn.tiles.generator.*;
import techreborn.tiles.idsu.TileIDSU;
2015-06-14 14:35:36 +02:00
import techreborn.tiles.lesu.TileLesu;
import techreborn.tiles.lesu.TileLesuStorage;
import techreborn.tiles.teir1.TileCompressor;
import techreborn.tiles.teir1.TileElectricFurnace;
import techreborn.tiles.teir1.TileExtractor;
2016-02-20 01:57:57 +01:00
import techreborn.tiles.teir1.TileGrinder;
2015-04-11 18:03:14 +02:00
public class ModBlocks {
2015-04-15 17:23:12 +02:00
public static Block thermalGenerator;
public static Block quantumTank;
public static Block quantumChest;
public static Block digitalChest;
public static Block centrifuge;
public static Block RollingMachine;
public static Block MachineCasing;
public static Block BlastFurnace;
public static Block AlloySmelter;
2016-02-20 01:57:57 +01:00
public static Block IndustrialGrinder;
public static Block ImplosionCompressor;
public static Block MatterFabricator;
public static Block ChunkLoader;
public static Block HighAdvancedMachineBlock;
public static Block Dragoneggenergysiphoner;
public static Block Magicenergeyconverter;
public static Block AssemblyMachine;
public static Block DieselGenerator;
public static Block IndustrialElectrolyzer;
public static Block MagicalAbsorber;
public static Block Semifluidgenerator;
public static Block Gasturbine;
public static Block AlloyFurnace;
public static Block ChemicalReactor;
public static Block Idsu;
public static Block Aesu;
public static Block Lesu;
public static Block Supercondensator;
public static Block LesuStorage;
public static Block Distillationtower;
public static Block ElectricCraftingTable;
public static Block VacuumFreezer;
public static Block PlasmaGenerator;
public static Block FusionControlComputer;
public static Block ComputerCube;
public static Block FusionCoil;
public static Block LightningRod;
public static Block heatGenerator;
public static Block industrialSawmill;
public static Block chargeBench;
2015-11-18 21:59:08 +01:00
public static Block playerDetector;
2016-02-20 01:57:57 +01:00
public static Block Grinder;
2016-02-20 03:21:44 +01:00
public static Block Generator;
public static Block Compressor;
public static Block Extractor;
public static Block ElectricFurnace;
2016-02-25 19:21:59 +01:00
public static Block solarPanel;
2016-01-01 21:35:58 +01:00
public static BlockOre ore;
2016-02-25 14:35:12 +01:00
public static BlockOre2 ore2;
public static Block storage;
2015-05-23 00:37:10 +02:00
public static Block storage2;
public static Block machineframe;
2016-02-20 20:46:18 +01:00
2016-02-20 01:55:18 +01:00
public static Block rubberLog;
public static Block rubberLeaves;
2016-02-20 19:40:35 +01:00
public static Block rubberSapling;
2016-02-20 20:46:18 +01:00
public static Block rubberPlanks;
public static Block ironFence;
public static Block ironFenceGate;
public static void init() {
thermalGenerator = new BlockThermalGenerator();
GameRegistry.registerBlock(thermalGenerator, "techreborn.thermalGenerator");
GameRegistry.registerTileEntity(TileThermalGenerator.class, "TileThermalGeneratorTR");
quantumTank = new BlockQuantumTank();
GameRegistry.registerBlock(quantumTank, ItemBlockQuantumTank.class, "techreborn.quantumTank");
GameRegistry.registerTileEntity(TileQuantumTank.class, "TileQuantumTankTR");
quantumChest = new BlockQuantumChest();
GameRegistry.registerBlock(quantumChest, ItemBlockQuantumChest.class, "techreborn.quantumChest");
GameRegistry.registerTileEntity(TileQuantumChest.class, "TileQuantumChestTR");
digitalChest = new BlockDigitalChest();
GameRegistry.registerBlock(digitalChest, ItemBlockDigitalChest.class, "techreborn.digitalChest");
GameRegistry.registerTileEntity(TileDigitalChest.class, "TileDigitalChestTR");
centrifuge = new BlockCentrifuge();
GameRegistry.registerBlock(centrifuge, "techreborn.centrifuge");
GameRegistry.registerTileEntity(TileCentrifuge.class, "TileCentrifugeTR");
RollingMachine = new BlockRollingMachine(Material.rock);
GameRegistry.registerBlock(RollingMachine, "rollingmachine");
GameRegistry.registerTileEntity(TileRollingMachine.class, "TileRollingMachineTR");
BlastFurnace = new BlockBlastFurnace(Material.rock);
GameRegistry.registerBlock(BlastFurnace, "blastFurnace");
GameRegistry.registerTileEntity(TileBlastFurnace.class, "TileBlastFurnaceTR");
AlloySmelter = new BlockAlloySmelter(Material.rock);
GameRegistry.registerBlock(AlloySmelter, "alloySmelter");
GameRegistry.registerTileEntity(TileAlloySmelter.class, "TileAlloySmalterTR");
2016-02-20 01:57:57 +01:00
IndustrialGrinder = new BlockIndustrialGrinder(Material.rock);
GameRegistry.registerBlock(IndustrialGrinder, "grinder");
GameRegistry.registerTileEntity(TileIndustrialGrinder.class, "TileIndustrialGrinderTR");
ImplosionCompressor = new BlockImplosionCompressor(Material.rock);
GameRegistry.registerBlock(ImplosionCompressor, "implosioncompressor");
GameRegistry.registerTileEntity(TileImplosionCompressor.class, "TileImplosionCompressorTR");
MatterFabricator = new BlockMatterFabricator(Material.rock);
GameRegistry.registerBlock(MatterFabricator, "matterfabricator");
GameRegistry.registerTileEntity(TileMatterFabricator.class, "TileMatterFabricatorTR");
ChunkLoader = new BlockChunkLoader(Material.rock);
GameRegistry.registerBlock(ChunkLoader, "chunkloader");
GameRegistry.registerTileEntity(TileChunkLoader.class, "TileChunkLoaderTR");
chargeBench = new BlockChargeBench(Material.rock);
GameRegistry.registerBlock(chargeBench, "chargebench");
GameRegistry.registerTileEntity(TileChargeBench.class, "TileChargeBench");
2015-11-18 21:59:08 +01:00
playerDetector = new BlockPlayerDetector();
GameRegistry.registerBlock(playerDetector, ItemBlockPlayerDetector.class, "playerDetector");
2015-11-22 12:16:54 +01:00
GameRegistry.registerTileEntity(TilePlayerDectector.class, "TilePlayerDectectorTR");
2015-11-18 21:59:08 +01:00
MachineCasing = new BlockMachineCasing(Material.rock);
GameRegistry.registerBlock(MachineCasing, ItemBlockMachineCasing.class, "machinecasing");
GameRegistry.registerTileEntity(TileMachineCasing.class, "TileMachineCasingTR");
ore = new BlockOre(Material.rock);
GameRegistry.registerBlock(ore, ItemBlockOre.class, "techreborn.ore");
2016-02-25 14:35:12 +01:00
ore2 = new BlockOre2(Material.rock);
GameRegistry.registerBlock(ore2, ItemBlockOre2.class, "techreborn.ore2");
storage = new BlockStorage(Material.iron);
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
2015-05-23 00:37:10 +02:00
storage2 = new BlockStorage2(Material.iron);
GameRegistry.registerBlock(storage2, ItemBlockStorage2.class, "techreborn.storage2");
HighAdvancedMachineBlock = new BlockHighlyAdvancedMachine(Material.rock);
GameRegistry.registerBlock(HighAdvancedMachineBlock, "highlyadvancedmachine");
Dragoneggenergysiphoner = new BlockDragonEggSiphoner(Material.rock);
GameRegistry.registerBlock(Dragoneggenergysiphoner, "dragoneggenergsiphon");
GameRegistry.registerTileEntity(TileDragonEggSiphoner.class, "TileDragonEggSiphonerTR");
Magicenergeyconverter = new BlockMagicEnergyConverter(Material.rock);
GameRegistry.registerBlock(Magicenergeyconverter, "magicenergyconverter");
AssemblyMachine = new BlockAssemblingMachine(Material.rock);
GameRegistry.registerBlock(AssemblyMachine, "assemblymachine");
GameRegistry.registerTileEntity(TileAssemblingMachine.class, "TileAssemblyMachineTR");
DieselGenerator = new BlockDieselGenerator(Material.rock);
GameRegistry.registerBlock(DieselGenerator, "dieselgenerator");
GameRegistry.registerTileEntity(TileDieselGenerator.class, "TileDieselGeneratorTR");
IndustrialElectrolyzer = new BlockIndustrialElectrolyzer(Material.rock);
GameRegistry.registerBlock(IndustrialElectrolyzer, "industrialelectrolyzer");
GameRegistry.registerTileEntity(TileIndustrialElectrolyzer.class, "TileIndustrialElectrolyzerTR");
MagicalAbsorber = new BlockMagicEnergyAbsorber(Material.rock);
GameRegistry.registerBlock(MagicalAbsorber, "magicrnergyabsorber");
Semifluidgenerator = new BlockSemiFluidGenerator(Material.rock);
GameRegistry.registerBlock(Semifluidgenerator, "semifluidgenerator");
GameRegistry.registerTileEntity(TileSemifluidGenerator.class, "TileSemifluidGeneratorTR");
Gasturbine = new BlockGasTurbine(Material.rock);
GameRegistry.registerBlock(Gasturbine, "gasturbine");
GameRegistry.registerTileEntity(TileGasTurbine.class, "TileGassTurbineTR");
AlloyFurnace = new BlockAlloyFurnace(Material.rock);
GameRegistry.registerBlock(AlloyFurnace, "alloyfurnace");
GameRegistry.registerTileEntity(TileAlloyFurnace.class, "TileAlloyFurnaceTR");
ChemicalReactor = new BlockChemicalReactor(Material.rock);
GameRegistry.registerBlock(ChemicalReactor, "chemicalreactor");
GameRegistry.registerTileEntity(TileChemicalReactor.class, "TileChemicalReactorTR");
Idsu = new BlockIDSU(Material.rock);
GameRegistry.registerBlock(Idsu, "idsu");
GameRegistry.registerTileEntity(TileIDSU.class, "TileIDSUTR");
Aesu = new BlockAesu(Material.rock);
GameRegistry.registerBlock(Aesu, ItemBlockAesu.class, "aesu");
GameRegistry.registerTileEntity(TileAesu.class, "TileAesuTR");
Lesu = new BlockLesu(Material.rock);
GameRegistry.registerBlock(Lesu, "lesu");
2015-06-14 14:35:36 +02:00
GameRegistry.registerTileEntity(TileLesu.class, "TileLesuTR");
Supercondensator = new BlockSupercondensator(Material.rock);
GameRegistry.registerBlock(Supercondensator, "supercondensator");
LesuStorage = new BlockLesuStorage(Material.rock);
GameRegistry.registerBlock(LesuStorage, "lesustorage");
2015-06-14 14:35:36 +02:00
GameRegistry.registerTileEntity(TileLesuStorage.class, "TileLesuStorageTR");
Distillationtower = new BlockDistillationTower(Material.rock);
GameRegistry.registerBlock(Distillationtower, "distillationtower");
ElectricCraftingTable = new BlockElectricCraftingTable(Material.rock);
GameRegistry.registerBlock(ElectricCraftingTable, "electriccraftingtable");
VacuumFreezer = new BlockVacuumFreezer(Material.rock);
GameRegistry.registerBlock(VacuumFreezer, "vacuumfreezer");
GameRegistry.registerTileEntity(TileVacuumFreezer.class, "TileVacuumFreezerTR");
PlasmaGenerator = new BlockPlasmaGenerator(Material.rock);
GameRegistry.registerBlock(PlasmaGenerator, "plasmagenerator");
ComputerCube = new BlockComputerCube(Material.rock);
GameRegistry.registerBlock(ComputerCube, "computercube");
FusionControlComputer = new BlockFusionControlComputer(Material.rock);
GameRegistry.registerBlock(FusionControlComputer, "fusioncontrolcomputer");
GameRegistry.registerTileEntity(TileEntityFusionController.class, "TileEntityFustionControllerTR");
FusionCoil = new BlockFusionCoil(Material.rock);
GameRegistry.registerBlock(FusionCoil, "fusioncoil");
LightningRod = new BlockLightningRod(Material.rock);
GameRegistry.registerBlock(LightningRod, "lightningrod");
heatGenerator = new BlockHeatGenerator(Material.rock);
GameRegistry.registerBlock(heatGenerator, "heatgenerator");
GameRegistry.registerTileEntity(TileHeatGenerator.class, "TileHeatGeneratorTR");
industrialSawmill = new BlockIndustrialSawmill(Material.rock);
GameRegistry.registerBlock(industrialSawmill, "industrialSawmill");
GameRegistry.registerTileEntity(TileIndustrialSawmill.class, "TileIndustrialSawmillTR");
machineframe = new BlockMachineFrame(Material.iron);
GameRegistry.registerBlock(machineframe, ItemBlockMachineFrame.class, "techreborn.machineFrame");
2016-02-20 01:57:57 +01:00
Grinder = new BlockGrinder(Material.iron);
GameRegistry.registerBlock(Grinder, "techreborn.grinder");
GameRegistry.registerTileEntity(TileGrinder.class, "TileGrinderTR");
2016-02-20 03:21:44 +01:00
Generator = new BlockGenerator();
GameRegistry.registerBlock(Generator, "techreborn.generator");
GameRegistry.registerTileEntity(TileGenerator.class, "TileGeneratorTR");
Extractor = new BlockExtractor(Material.iron);
GameRegistry.registerBlock(Extractor, "techreborn.extractor");
GameRegistry.registerTileEntity(TileExtractor.class, "TileExtractorTR");
Compressor = new BlockCompressor(Material.iron);
GameRegistry.registerBlock(Compressor, "techreborn.compressor");
GameRegistry.registerTileEntity(TileCompressor.class, "TileCompressorTR");
ElectricFurnace = new BlockElectricFurnace(Material.iron);
GameRegistry.registerBlock(ElectricFurnace, "techreborn.electricfurnace");
GameRegistry.registerTileEntity(TileElectricFurnace.class, "TileElectricFurnaceTR");
2016-02-25 19:21:59 +01:00
solarPanel = new BlockSolarPanel();
GameRegistry.registerBlock(solarPanel, "techreborn.solarpanel");
GameRegistry.registerTileEntity(TileSolarPanel.class, "TileSolarPanel");
2015-09-23 19:58:38 +02:00
2015-11-11 18:00:18 +01:00
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
2015-11-11 18:08:41 +01:00
2016-02-20 01:55:18 +01:00
rubberLog = new BlockRubberLog();
GameRegistry.registerBlock(rubberLog, "rubberLog");
2016-02-20 20:46:18 +01:00
rubberPlanks = new BlockRubberPlank();
GameRegistry.registerBlock(rubberPlanks, "rubberPlanks");
2016-02-20 01:55:18 +01:00
rubberLeaves = new BlockRubberLeaves();
GameRegistry.registerBlock(rubberLeaves, "rubberLeaves");
2016-02-20 20:46:18 +01:00
2016-02-20 19:40:35 +01:00
rubberSapling = new BlockRubberSapling();
2016-02-20 20:46:18 +01:00
GameRegistry.registerBlock(rubberSapling, ItemBlockRubberSapling.class, "rubberSapling");
ironFence = new BlockIronFence();
GameRegistry.registerBlock(ironFence, "ironFence");
ironFenceGate = new BlockIronFenceGate();
GameRegistry.registerBlock(ironFenceGate, "ironFenceGate");
2016-02-20 01:55:18 +01:00
registerOreDict();
2015-11-08 13:15:45 +01:00
Core.logHelper.info("TechReborns Blocks Loaded");
}
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("oreTungsten", new ItemStack(ore, 1, 8));
OreDictionary.registerOre("oreSheldonite", new ItemStack(ore, 1, 9));
OreDictionary.registerOre("orePlatinum", new ItemStack(ore, 1, 9));
OreDictionary.registerOre("orePeridot", new ItemStack(ore, 1, 10));
OreDictionary.registerOre("oreSodalite", new ItemStack(ore, 1, 11));
OreDictionary.registerOre("oreTetrahedrite", new ItemStack(ore, 1, 12));
OreDictionary.registerOre("oreTin", new ItemStack(ore, 1, 13));
OreDictionary.registerOre("oreLead", new ItemStack(ore, 1, 14));
OreDictionary.registerOre("oreSilver", new ItemStack(ore, 1, 15));
OreDictionary.registerOre("blockSilver", new ItemStack(storage, 1, 0));
OreDictionary.registerOre("blockAluminum", new ItemStack(storage, 1, 1));
OreDictionary.registerOre("blockTitanium", new ItemStack(storage, 1, 2));
OreDictionary.registerOre("blockChrome", new ItemStack(storage, 1, 3));
OreDictionary.registerOre("blockSteel", new ItemStack(storage, 1, 4));
OreDictionary.registerOre("blockBrass", new ItemStack(storage, 1, 5));
OreDictionary.registerOre("blockLead", new ItemStack(storage, 1, 6));
OreDictionary.registerOre("blockElectrum", new ItemStack(storage, 1, 7));
OreDictionary.registerOre("blockZinc", new ItemStack(storage, 1, 8));
OreDictionary.registerOre("blockPlatinum", new ItemStack(storage, 1, 9));
OreDictionary.registerOre("blockTungsten", new ItemStack(storage, 1, 10));
OreDictionary.registerOre("blockNickel", new ItemStack(storage, 1, 11));
OreDictionary.registerOre("blockInvar", new ItemStack(storage, 1, 12));
OreDictionary.registerOre("blockOsmium", new ItemStack(storage, 1, 13));
OreDictionary.registerOre("blockIridium", new ItemStack(storage, 1, 14));
OreDictionary.registerOre("blockTungstensteel", new ItemStack(storage2, 1, 0));
OreDictionary.registerOre("blockLodestone", new ItemStack(storage2, 1, 1));
OreDictionary.registerOre("blockTellurium", new ItemStack(storage2, 1, 2));
OreDictionary.registerOre("blockRuby", new ItemStack(storage2, 1, 5));
OreDictionary.registerOre("blockSapphire", new ItemStack(storage2, 1, 6));
OreDictionary.registerOre("blockPeridot", new ItemStack(storage2, 1, 7));
OreDictionary.registerOre("blockYellowGarnet", new ItemStack(storage2, 1, 8));
OreDictionary.registerOre("blockRedGarnet", new ItemStack(storage2, 1, 9));
OreDictionary.registerOre("craftingPiston", Blocks.piston);
OreDictionary.registerOre("craftingPiston", Blocks.sticky_piston);
OreDictionary.registerOre("crafterWood", Blocks.crafting_table);
OreDictionary.registerOre("machineBasic", new ItemStack(machineframe, 1));
2016-02-20 22:01:14 +01:00
OreDictionary.registerOre("treeSapling", rubberSapling);
OreDictionary.registerOre("saplingRubber", rubberSapling);
2016-02-20 22:01:14 +01:00
OreDictionary.registerOre("logWood", new ItemStack(rubberLog, 1 , OreDictionary.WILDCARD_VALUE));
OreDictionary.registerOre("logRubber", new ItemStack(rubberLog, 1 , OreDictionary.WILDCARD_VALUE));
2016-02-20 22:01:14 +01:00
OreDictionary.registerOre("plankWood", new ItemStack(rubberPlanks, 1 , OreDictionary.WILDCARD_VALUE));
OreDictionary.registerOre("plankRubber", new ItemStack(rubberPlanks, 1 , OreDictionary.WILDCARD_VALUE));
2016-02-20 22:01:14 +01:00
OreDictionary.registerOre("treeLeaves", new ItemStack(rubberLeaves, 1 , OreDictionary.WILDCARD_VALUE));
OreDictionary.registerOre("leavesRubber", new ItemStack(rubberLeaves, 1 , OreDictionary.WILDCARD_VALUE));
OreDictionary.registerOre("fenceIron", ironFence);
}
2015-04-11 18:03:14 +02:00
}