2015-04-11 18:03:14 +02:00
|
|
|
package techreborn.init;
|
|
|
|
|
2015-04-12 10:45:31 +02:00
|
|
|
import net.minecraft.block.Block;
|
2016-11-06 20:14:43 +01:00
|
|
|
import net.minecraft.block.BlockColored;
|
2015-04-12 10:45:31 +02:00
|
|
|
import net.minecraft.block.material.Material;
|
2015-05-07 19:39:47 +02:00
|
|
|
import net.minecraft.init.Blocks;
|
2016-05-08 11:13:21 +02:00
|
|
|
import net.minecraft.item.ItemBlock;
|
2016-11-06 20:14:43 +01:00
|
|
|
import net.minecraft.item.ItemColored;
|
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;
|
2016-02-20 17:59:31 +01:00
|
|
|
import reborncore.common.tile.TileMachineBase;
|
2016-05-18 21:14:50 +02:00
|
|
|
import reborncore.common.util.StringUtils;
|
2015-11-08 13:15:45 +01:00
|
|
|
import techreborn.Core;
|
2016-05-08 22:42:09 +02:00
|
|
|
import techreborn.blocks.*;
|
2016-10-08 21:46:16 +02:00
|
|
|
import techreborn.blocks.advanced_machine.*;
|
|
|
|
import techreborn.blocks.generator.*;
|
2016-03-14 04:27:15 +01:00
|
|
|
import techreborn.blocks.iron_machines.BlockAlloyFurnace;
|
|
|
|
import techreborn.blocks.iron_machines.BlockIronFurnace;
|
2016-10-08 21:46:16 +02:00
|
|
|
import techreborn.blocks.machine.*;
|
|
|
|
import techreborn.blocks.storage.*;
|
|
|
|
import techreborn.blocks.tier1.*;
|
2016-03-16 17:54:44 +01:00
|
|
|
import techreborn.blocks.transformers.BlockHVTransformer;
|
|
|
|
import techreborn.blocks.transformers.BlockLVTransformer;
|
|
|
|
import techreborn.blocks.transformers.BlockMVTransformer;
|
2016-11-06 20:14:43 +01:00
|
|
|
import techreborn.client.TechRebornCreativeTabMisc;
|
2016-10-08 21:46:16 +02:00
|
|
|
import techreborn.itemblocks.*;
|
2016-05-08 22:42:09 +02:00
|
|
|
import techreborn.tiles.*;
|
2015-11-16 16:20:13 +01:00
|
|
|
import techreborn.tiles.fusionReactor.TileEntityFusionController;
|
2016-07-16 11:44:54 +02:00
|
|
|
import techreborn.tiles.generator.*;
|
2015-06-17 18:01:26 +02:00
|
|
|
import techreborn.tiles.idsu.TileIDSU;
|
2015-06-14 14:35:36 +02:00
|
|
|
import techreborn.tiles.lesu.TileLesu;
|
|
|
|
import techreborn.tiles.lesu.TileLesuStorage;
|
2016-07-24 21:26:15 +02:00
|
|
|
import techreborn.tiles.multiblock.*;
|
2016-03-14 09:26:41 +01:00
|
|
|
import techreborn.tiles.storage.TileBatBox;
|
2016-03-14 09:34:15 +01:00
|
|
|
import techreborn.tiles.storage.TileMFE;
|
|
|
|
import techreborn.tiles.storage.TileMFSU;
|
2016-10-08 21:46:16 +02:00
|
|
|
import techreborn.tiles.teir1.*;
|
2016-03-16 17:54:44 +01:00
|
|
|
import techreborn.tiles.transformers.TileHVTransformer;
|
|
|
|
import techreborn.tiles.transformers.TileLVTransformer;
|
|
|
|
import techreborn.tiles.transformers.TileMVTransformer;
|
2015-04-11 18:03:14 +02:00
|
|
|
|
2016-05-08 11:13:21 +02:00
|
|
|
import java.lang.reflect.InvocationTargetException;
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public class ModBlocks {
|
2016-03-25 10:47:34 +01: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;
|
|
|
|
public static Block IndustrialGrinder;
|
|
|
|
public static Block ImplosionCompressor;
|
|
|
|
public static Block MatterFabricator;
|
|
|
|
public static Block ChunkLoader;
|
|
|
|
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;
|
2016-07-01 16:55:37 +02:00
|
|
|
public static Block heatGenerator;
|
2016-03-25 10:47:34 +01:00
|
|
|
public static Block industrialSawmill;
|
|
|
|
public static Block chargeBench;
|
|
|
|
public static Block playerDetector;
|
|
|
|
public static Block Grinder;
|
|
|
|
public static Block Generator;
|
|
|
|
public static Block Compressor;
|
|
|
|
public static Block Extractor;
|
|
|
|
public static Block ElectricFurnace;
|
|
|
|
public static Block solarPanel;
|
|
|
|
public static Block waterMill;
|
|
|
|
public static Block windMill;
|
|
|
|
public static Block recycler;
|
|
|
|
public static Block batBox;
|
|
|
|
public static Block mfe;
|
|
|
|
public static Block mfsu;
|
|
|
|
public static Block scrapboxinator;
|
|
|
|
public static Block lvt;
|
|
|
|
public static Block mvt;
|
|
|
|
public static Block hvt;
|
2016-08-10 01:29:47 +02:00
|
|
|
public static Block pump;
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
public static BlockOre ore;
|
|
|
|
public static BlockOre2 ore2;
|
|
|
|
public static Block storage;
|
|
|
|
public static Block storage2;
|
|
|
|
public static Block machineframe;
|
|
|
|
public static Block reinforcedglass;
|
|
|
|
public static Block ironFurnace;
|
|
|
|
public static Block nuke;
|
|
|
|
|
|
|
|
public static Block rubberLog;
|
|
|
|
public static Block rubberLeaves;
|
|
|
|
public static Block rubberSapling;
|
|
|
|
public static Block rubberPlanks;
|
|
|
|
|
|
|
|
public static Block ironFence;
|
2016-11-06 20:14:43 +01:00
|
|
|
public static Block flare;
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void init() {
|
2016-03-25 10:47:34 +01:00
|
|
|
thermalGenerator = new BlockThermalGenerator();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(thermalGenerator, "techreborn.thermalGenerator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileThermalGenerator.class, "TileThermalGeneratorTR");
|
|
|
|
|
|
|
|
quantumTank = new BlockQuantumTank();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(quantumTank, ItemBlockQuantumTank.class, "techreborn.quantumTank");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileQuantumTank.class, "TileQuantumTankTR");
|
|
|
|
|
|
|
|
quantumChest = new BlockQuantumChest();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(quantumChest, ItemBlockQuantumChest.class, "techreborn.quantumChest");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileQuantumChest.class, "TileQuantumChestTR");
|
|
|
|
|
|
|
|
digitalChest = new BlockDigitalChest();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(digitalChest, ItemBlockDigitalChest.class, "techreborn.digitalChest");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileDigitalChest.class, "TileDigitalChestTR");
|
|
|
|
|
|
|
|
centrifuge = new BlockCentrifuge();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(centrifuge, "techreborn.centrifuge");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileCentrifuge.class, "TileCentrifugeTR");
|
2016-07-01 16:55:37 +02:00
|
|
|
Core.proxy.registerCustomBlockSateLocation(centrifuge, "machines/centrifuge");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
RollingMachine = new BlockRollingMachine(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(RollingMachine, "rollingmachine");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileRollingMachine.class, "TileRollingMachineTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
BlastFurnace = new BlockBlastFurnace(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(BlastFurnace, "blastFurnace");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileBlastFurnace.class, "TileBlastFurnaceTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
AlloySmelter = new BlockAlloySmelter(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(AlloySmelter, "alloySmelter");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileAlloySmelter.class, "TileAlloySmalterTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
IndustrialGrinder = new BlockIndustrialGrinder(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(IndustrialGrinder, "grinder");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileIndustrialGrinder.class, "TileIndustrialGrinderTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ImplosionCompressor = new BlockImplosionCompressor(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ImplosionCompressor, "implosioncompressor");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileImplosionCompressor.class, "TileImplosionCompressorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
MatterFabricator = new BlockMatterFabricator(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(MatterFabricator, "matterfabricator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileMatterFabricator.class, "TileMatterFabricatorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ChunkLoader = new BlockChunkLoader(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ChunkLoader, "chunkloader");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileChunkLoader.class, "TileChunkLoaderTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
chargeBench = new BlockChargeBench(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(chargeBench, "chargebench");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileChargeBench.class, "TileChargeBench");
|
|
|
|
|
|
|
|
playerDetector = new BlockPlayerDetector();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(playerDetector, ItemBlockPlayerDetector.class, "playerDetector");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TilePlayerDectector.class, "TilePlayerDectectorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
MachineCasing = new BlockMachineCasing(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(MachineCasing, ItemBlockMachineCasing.class, "machinecasing");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileMachineCasing.class, "TileMachineCasingTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ore = new BlockOre(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ore, ItemBlockOre.class, "techreborn.ore");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ore2 = new BlockOre2(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ore2, ItemBlockOre2.class, "techreborn.ore2");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
storage = new BlockStorage(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
storage2 = new BlockStorage2(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(storage2, ItemBlockStorage2.class, "techreborn.storage2");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Dragoneggenergysiphoner = new BlockDragonEggSiphoner(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Dragoneggenergysiphoner, "dragoneggenergsiphon");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileDragonEggSiphoner.class, "TileDragonEggSiphonerTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Magicenergeyconverter = new BlockMagicEnergyConverter(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Magicenergeyconverter, "magicenergyconverter");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
AssemblyMachine = new BlockAssemblingMachine(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(AssemblyMachine, "assemblymachine");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileAssemblingMachine.class, "TileAssemblyMachineTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
DieselGenerator = new BlockDieselGenerator(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(DieselGenerator, "dieselgenerator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileDieselGenerator.class, "TileDieselGeneratorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
IndustrialElectrolyzer = new BlockIndustrialElectrolyzer(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(IndustrialElectrolyzer, "industrialelectrolyzer");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileIndustrialElectrolyzer.class, "TileIndustrialElectrolyzerTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
MagicalAbsorber = new BlockMagicEnergyAbsorber(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(MagicalAbsorber, "magicrnergyabsorber");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Semifluidgenerator = new BlockSemiFluidGenerator(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Semifluidgenerator, "semifluidgenerator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileSemifluidGenerator.class, "TileSemifluidGeneratorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Gasturbine = new BlockGasTurbine(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Gasturbine, "gasturbine");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileGasTurbine.class, "TileGassTurbineTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
AlloyFurnace = new BlockAlloyFurnace(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(AlloyFurnace, "alloyfurnace");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileAlloyFurnace.class, "TileAlloyFurnaceTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ChemicalReactor = new BlockChemicalReactor(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ChemicalReactor, "chemicalreactor");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileChemicalReactor.class, "TileChemicalReactorTR");
|
|
|
|
|
2016-03-27 21:10:49 +02:00
|
|
|
Idsu = new BlockIDSU();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Idsu, "idsu");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileIDSU.class, "TileIDSUTR");
|
|
|
|
|
2016-03-27 21:10:49 +02:00
|
|
|
Aesu = new BlockAESU();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Aesu, ItemBlockAesu.class, "aesu");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileAesu.class, "TileAesuTR");
|
|
|
|
|
2016-03-27 21:10:49 +02:00
|
|
|
Lesu = new BlockLESU();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Lesu, "lesu");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileLesu.class, "TileLesuTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Supercondensator = new BlockSupercondensator(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Supercondensator, "supercondensator");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
LesuStorage = new BlockLESUStorage(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(LesuStorage, "lesustorage");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileLesuStorage.class, "TileLesuStorageTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Distillationtower = new BlockDistillationTower(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Distillationtower, "distillationtower");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ElectricCraftingTable = new BlockElectricCraftingTable(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ElectricCraftingTable, "electriccraftingtable");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
VacuumFreezer = new BlockVacuumFreezer(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(VacuumFreezer, "vacuumfreezer");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileVacuumFreezer.class, "TileVacuumFreezerTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
PlasmaGenerator = new BlockPlasmaGenerator(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(PlasmaGenerator, "plasmagenerator");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ComputerCube = new BlockComputerCube(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ComputerCube, "computercube");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
FusionControlComputer = new BlockFusionControlComputer(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(FusionControlComputer, "fusioncontrolcomputer");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileEntityFusionController.class, "TileEntityFustionControllerTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
FusionCoil = new BlockFusionCoil(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(FusionCoil, "fusioncoil");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
LightningRod = new BlockLightningRod(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(LightningRod, "lightningrod");
|
2016-07-16 11:44:54 +02:00
|
|
|
GameRegistry.registerTileEntity(TileLightningRod.class, "TileLightningRodTR");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-07-01 16:55:37 +02:00
|
|
|
heatGenerator = new BlockHeatGenerator(Material.ROCK);
|
|
|
|
registerBlock(heatGenerator, "heatgenerator");
|
|
|
|
GameRegistry.registerTileEntity(TileHeatGenerator.class, "TileHeatGeneratorTR");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
industrialSawmill = new BlockIndustrialSawmill(Material.ROCK);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(industrialSawmill, "industrialSawmill");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileIndustrialSawmill.class, "TileIndustrialSawmillTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
machineframe = new BlockMachineFrame(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(machineframe, ItemBlockMachineFrame.class, "techreborn.machineFrame");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Grinder = new BlockGrinder(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Grinder, "techreborn.grinder");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileGrinder.class, "TileGrinderTR");
|
|
|
|
|
|
|
|
Generator = new BlockGenerator();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Generator, "techreborn.generator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileGenerator.class, "TileGeneratorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Extractor = new BlockExtractor(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Extractor, "techreborn.extractor");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileExtractor.class, "TileExtractorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
Compressor = new BlockCompressor(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(Compressor, "techreborn.compressor");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileCompressor.class, "TileCompressorTR");
|
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
ElectricFurnace = new BlockElectricFurnace(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ElectricFurnace, "techreborn.electricfurnace");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileElectricFurnace.class, "TileElectricFurnaceTR");
|
|
|
|
|
|
|
|
solarPanel = new BlockSolarPanel();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(solarPanel, "techreborn.solarpanel");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileSolarPanel.class, "TileSolarPanel");
|
|
|
|
|
|
|
|
waterMill = new BlockWaterMill();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(waterMill, "techreborn.watermill");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileWaterMill.class, "TileWaterMill");
|
|
|
|
|
|
|
|
windMill = new BlockWindMill();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(windMill, "techreborn.windmill");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileWindMill.class, "TileWindMill");
|
2016-07-01 16:40:46 +02:00
|
|
|
|
2016-07-01 16:55:37 +02:00
|
|
|
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
rubberLog = new BlockRubberLog();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(rubberLog, "rubberLog");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
rubberPlanks = new BlockRubberPlank();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(rubberPlanks, "rubberPlanks");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
rubberLeaves = new BlockRubberLeaves();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(rubberLeaves, "rubberLeaves");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
rubberSapling = new BlockRubberSapling();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(rubberSapling, ItemBlockRubberSapling.class, "rubberSapling");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
ironFence = new BlockIronFence();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ironFence, "ironFence");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
reinforcedglass = new BlockReinforcedGlass(Material.GLASS);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(reinforcedglass, "reinforcedglass");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
recycler = new BlockRecycler(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(recycler, "recycler");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileRecycler.class, "TileRecyclerTR");
|
|
|
|
|
|
|
|
batBox = new BlockBatBox();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(batBox, "batBox");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileBatBox.class, "TileBatBox");
|
|
|
|
|
|
|
|
mfe = new BlockMFE();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(mfe, "mfe");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileMFE.class, "TileMFE");
|
|
|
|
|
|
|
|
mfsu = new BlockMFSU();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(mfsu, "mfsu");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileMFSU.class, "TileMFSU");
|
|
|
|
|
|
|
|
lvt = new BlockLVTransformer();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(lvt, "lvt");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileLVTransformer.class, "TileLVTransformer");
|
|
|
|
|
|
|
|
mvt = new BlockMVTransformer();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(mvt, "mvt");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileMVTransformer.class, "TileMVTransformer");
|
|
|
|
|
|
|
|
hvt = new BlockHVTransformer();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(hvt, "hvt");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformer");
|
|
|
|
|
2016-05-08 22:42:09 +02:00
|
|
|
pump = new BlockPump();
|
|
|
|
registerBlock(pump, "pump");
|
|
|
|
GameRegistry.registerTileEntity(TilePump.class, "TilePump");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
ironFurnace = new BlockIronFurnace();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(ironFurnace, "ironfurnace");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileIronFurnace.class, "TileIronFurnaceTR");
|
|
|
|
|
|
|
|
nuke = new BlockNuke();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(nuke, "nuke");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
scrapboxinator = new BlockScrapboxinator(Material.IRON);
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(scrapboxinator, "scrapboxinator");
|
2016-03-25 10:47:34 +01:00
|
|
|
GameRegistry.registerTileEntity(TileScrapboxinator.class, "TileScrapboxinatorTR");
|
|
|
|
|
2016-11-06 20:14:43 +01:00
|
|
|
flare = new BlockFlare();
|
|
|
|
registerBlock(flare, "flare");
|
|
|
|
ItemBlock itemBlock = new ItemColored(flare, true);
|
|
|
|
itemBlock.setRegistryName("flareItemBlock");
|
|
|
|
itemBlock.setCreativeTab(TechRebornCreativeTabMisc.instance);
|
|
|
|
GameRegistry.register(itemBlock);
|
|
|
|
GameRegistry.registerTileEntity(TileEntityFlare.class, "TileEntityFlareTR");
|
|
|
|
|
2016-08-10 01:29:47 +02:00
|
|
|
registerOreDict();
|
2016-03-25 10:47:34 +01:00
|
|
|
Core.logHelper.info("TechReborns Blocks Loaded");
|
|
|
|
}
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void registerBlock(Block block, String name) {
|
2016-05-08 11:13:21 +02:00
|
|
|
block.setRegistryName(name);
|
|
|
|
GameRegistry.register(block);
|
|
|
|
GameRegistry.register(new ItemBlock(block), block.getRegistryName());
|
|
|
|
}
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void registerBlock(Block block, Class<? extends ItemBlock> itemclass, String name) {
|
2016-05-08 11:13:21 +02:00
|
|
|
block.setRegistryName(name);
|
|
|
|
GameRegistry.register(block);
|
|
|
|
try {
|
|
|
|
ItemBlock itemBlock = itemclass.getConstructor(Block.class).newInstance(block);
|
|
|
|
itemBlock.setRegistryName(name);
|
|
|
|
GameRegistry.register(itemBlock);
|
|
|
|
} catch (InstantiationException | IllegalAccessException | NoSuchMethodException | InvocationTargetException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
public static void registerOreDict() {
|
|
|
|
for (String ore : BlockOre.ores) {
|
2016-05-18 21:14:50 +02:00
|
|
|
OreDictionary.registerOre("ore" + StringUtils.toFirstCapital(ore), BlockOre.getOreByName(ore));
|
|
|
|
}
|
2016-04-10 23:50:05 +02:00
|
|
|
|
2016-10-08 21:46:16 +02:00
|
|
|
for (String ore : BlockOre2.ores) {
|
2016-05-18 21:14:50 +02:00
|
|
|
OreDictionary.registerOre("ore" + StringUtils.toFirstCapital(ore), BlockOre2.getOreByName(ore));
|
|
|
|
}
|
2016-10-08 21:46:16 +02:00
|
|
|
|
2016-07-01 16:55:37 +02:00
|
|
|
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));
|
2016-07-25 18:27:33 +02:00
|
|
|
//OreDictionary.registerOre("blockOsmium", new ItemStack(storage, 1, 13)); No osmium, stolen by Mekanism
|
|
|
|
OreDictionary.registerOre("blockIridium", new ItemStack(storage, 1, 13));
|
2016-07-01 16:55:37 +02:00
|
|
|
OreDictionary.registerOre("blockCopper", BlockStorage2.getStorageBlockByName("copper", 1));
|
|
|
|
OreDictionary.registerOre("blockTin", BlockStorage2.getStorageBlockByName("tin", 1));
|
|
|
|
|
|
|
|
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));
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-06 23:13:24 +02:00
|
|
|
OreDictionary.registerOre("craftingPiston", Blocks.PISTON);
|
|
|
|
OreDictionary.registerOre("craftingPiston", Blocks.STICKY_PISTON);
|
|
|
|
OreDictionary.registerOre("crafterWood", Blocks.CRAFTING_TABLE);
|
2016-03-25 10:47:34 +01:00
|
|
|
OreDictionary.registerOre("machineBasic", new ItemStack(machineframe, 1));
|
|
|
|
|
|
|
|
OreDictionary.registerOre("treeSapling", rubberSapling);
|
|
|
|
OreDictionary.registerOre("saplingRubber", rubberSapling);
|
|
|
|
OreDictionary.registerOre("logWood", new ItemStack(rubberLog, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
OreDictionary.registerOre("logRubber", new ItemStack(rubberLog, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
OreDictionary.registerOre("plankWood", new ItemStack(rubberPlanks, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
OreDictionary.registerOre("plankRubber", new ItemStack(rubberPlanks, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
OreDictionary.registerOre("treeLeaves", new ItemStack(rubberLeaves, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
OreDictionary.registerOre("leavesRubber", new ItemStack(rubberLeaves, 1, OreDictionary.WILDCARD_VALUE));
|
|
|
|
|
|
|
|
OreDictionary.registerOre("fenceIron", ironFence);
|
2016-10-08 21:46:16 +02:00
|
|
|
|
2016-03-30 07:45:15 +02:00
|
|
|
OreDictionary.registerOre("machineBlockBasic", BlockMachineFrame.getFrameByName("machine", 1));
|
|
|
|
OreDictionary.registerOre("machineBlockAdvanced", BlockMachineFrame.getFrameByName("advancedMachine", 1));
|
|
|
|
OreDictionary.registerOre("machineBlockHighlyAdvanced", BlockMachineFrame.getFrameByName("highlyAdvancedMachine", 1));
|
2016-09-18 21:56:29 +02:00
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
}
|
2015-04-11 18:03:14 +02:00
|
|
|
|
|
|
|
}
|