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;
|
2016-05-08 11:13:21 +02:00
|
|
|
import net.minecraft.item.ItemBlock;
|
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-07-01 16:40:46 +02:00
|
|
|
import org.apache.commons.lang3.ArrayUtils;
|
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-03-25 10:47:34 +01:00
|
|
|
import techreborn.blocks.advanced_machine.BlockBlastFurnace;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockCentrifuge;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockDistillationTower;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockImplosionCompressor;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockIndustrialElectrolyzer;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockIndustrialGrinder;
|
|
|
|
import techreborn.blocks.advanced_machine.BlockIndustrialSawmill;
|
|
|
|
import techreborn.blocks.generator.BlockDieselGenerator;
|
|
|
|
import techreborn.blocks.generator.BlockDragonEggSiphoner;
|
|
|
|
import techreborn.blocks.generator.BlockGasTurbine;
|
|
|
|
import techreborn.blocks.generator.BlockGenerator;
|
|
|
|
import techreborn.blocks.generator.BlockLightningRod;
|
|
|
|
import techreborn.blocks.generator.BlockMagicEnergyAbsorber;
|
|
|
|
import techreborn.blocks.generator.BlockMagicEnergyConverter;
|
|
|
|
import techreborn.blocks.generator.BlockPlasmaGenerator;
|
|
|
|
import techreborn.blocks.generator.BlockSemiFluidGenerator;
|
|
|
|
import techreborn.blocks.generator.BlockSolarPanel;
|
|
|
|
import techreborn.blocks.generator.BlockThermalGenerator;
|
|
|
|
import techreborn.blocks.generator.BlockWaterMill;
|
|
|
|
import techreborn.blocks.generator.BlockWindMill;
|
2016-03-14 04:27:15 +01:00
|
|
|
import techreborn.blocks.iron_machines.BlockAlloyFurnace;
|
|
|
|
import techreborn.blocks.iron_machines.BlockIronFurnace;
|
2016-03-25 10:47:34 +01:00
|
|
|
import techreborn.blocks.machine.BlockAssemblingMachine;
|
|
|
|
import techreborn.blocks.machine.BlockChargeBench;
|
|
|
|
import techreborn.blocks.machine.BlockChemicalReactor;
|
|
|
|
import techreborn.blocks.machine.BlockChunkLoader;
|
|
|
|
import techreborn.blocks.machine.BlockMatterFabricator;
|
|
|
|
import techreborn.blocks.machine.BlockRollingMachine;
|
|
|
|
import techreborn.blocks.machine.BlockScrapboxinator;
|
|
|
|
import techreborn.blocks.machine.BlockVacuumFreezer;
|
|
|
|
import techreborn.blocks.storage.BlockAESU;
|
|
|
|
import techreborn.blocks.storage.BlockBatBox;
|
|
|
|
import techreborn.blocks.storage.BlockIDSU;
|
|
|
|
import techreborn.blocks.storage.BlockLESU;
|
|
|
|
import techreborn.blocks.storage.BlockLESUStorage;
|
|
|
|
import techreborn.blocks.storage.BlockMFE;
|
|
|
|
import techreborn.blocks.storage.BlockMFSU;
|
|
|
|
import techreborn.blocks.tier1.BlockAlloySmelter;
|
|
|
|
import techreborn.blocks.tier1.BlockCompressor;
|
|
|
|
import techreborn.blocks.tier1.BlockElectricFurnace;
|
|
|
|
import techreborn.blocks.tier1.BlockExtractor;
|
|
|
|
import techreborn.blocks.tier1.BlockGrinder;
|
|
|
|
import techreborn.blocks.tier1.BlockRecycler;
|
2016-03-16 17:54:44 +01:00
|
|
|
import techreborn.blocks.transformers.BlockHVTransformer;
|
|
|
|
import techreborn.blocks.transformers.BlockLVTransformer;
|
|
|
|
import techreborn.blocks.transformers.BlockMVTransformer;
|
2016-03-25 10:47:34 +01:00
|
|
|
import techreborn.itemblocks.ItemBlockAesu;
|
|
|
|
import techreborn.itemblocks.ItemBlockDigitalChest;
|
|
|
|
import techreborn.itemblocks.ItemBlockMachineCasing;
|
|
|
|
import techreborn.itemblocks.ItemBlockMachineFrame;
|
|
|
|
import techreborn.itemblocks.ItemBlockOre;
|
|
|
|
import techreborn.itemblocks.ItemBlockOre2;
|
|
|
|
import techreborn.itemblocks.ItemBlockPlayerDetector;
|
|
|
|
import techreborn.itemblocks.ItemBlockQuantumChest;
|
|
|
|
import techreborn.itemblocks.ItemBlockQuantumTank;
|
|
|
|
import techreborn.itemblocks.ItemBlockRubberSapling;
|
|
|
|
import techreborn.itemblocks.ItemBlockStorage;
|
|
|
|
import techreborn.itemblocks.ItemBlockStorage2;
|
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-03-25 10:47:34 +01:00
|
|
|
import techreborn.tiles.generator.TileDieselGenerator;
|
|
|
|
import techreborn.tiles.generator.TileDragonEggSiphoner;
|
|
|
|
import techreborn.tiles.generator.TileGasTurbine;
|
|
|
|
import techreborn.tiles.generator.TileGenerator;
|
|
|
|
import techreborn.tiles.generator.TileSemifluidGenerator;
|
|
|
|
import techreborn.tiles.generator.TileSolarPanel;
|
|
|
|
import techreborn.tiles.generator.TileThermalGenerator;
|
|
|
|
import techreborn.tiles.generator.TileWaterMill;
|
|
|
|
import techreborn.tiles.generator.TileWindMill;
|
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-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-03-25 10:47:34 +01:00
|
|
|
import techreborn.tiles.teir1.TileCompressor;
|
|
|
|
import techreborn.tiles.teir1.TileElectricFurnace;
|
|
|
|
import techreborn.tiles.teir1.TileExtractor;
|
|
|
|
import techreborn.tiles.teir1.TileGrinder;
|
|
|
|
import techreborn.tiles.teir1.TileRecycler;
|
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-03-25 10:47:34 +01:00
|
|
|
public class ModBlocks
|
|
|
|
{
|
|
|
|
|
|
|
|
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;
|
|
|
|
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-05-08 22:42:09 +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-05-14 19:53:07 +02:00
|
|
|
public static Block distributor;
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
public static void init()
|
|
|
|
{
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(thermalGenerator, "machines/generators/thermal_generator");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(quantumTank, "machines/tier3_machines/quantum_tank");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(quantumChest, "machines/tier3_machines/quantum_chest");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(digitalChest, "machines/tier2_machines/digital_chest");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(centrifuge, "machines/tier2_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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(RollingMachine, "machines/tier1_machines/rolling_machine");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(BlastFurnace, "machines/tier2_machines/industrial_blast_furnace");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(AlloySmelter, "machines/tier1_machines/electric_alloy_smelter");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(IndustrialGrinder, "machines/tier2_machines/industrial_grinder");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ImplosionCompressor, "machines/tier2_machines/implosion_compressor");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(MatterFabricator, "machines/tier3_machines/matter_fabricator");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ChunkLoader, "machines/tier3_machines/industrial_chunk_loader");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ore, "storage/ores");
|
|
|
|
for (int i = 0; i < BlockOre.ores.length; i++) {
|
|
|
|
Core.proxy.registerSubBlockInventoryLocation(ore, i, "storage/ores", BlockOre.ores[i]);
|
|
|
|
}
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ore2, "storage/ores");
|
|
|
|
for (int i = 0; i < BlockOre2.ores.length; i++) {
|
|
|
|
Core.proxy.registerSubBlockInventoryLocation(ore2, i, "storage/ores", BlockOre2.ores[i]);
|
|
|
|
}
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(storage, "storage/storage");
|
|
|
|
for (int i = 0; i < BlockStorage.types.length; i++) {
|
|
|
|
Core.proxy.registerSubBlockInventoryLocation(storage, i, "storage/storage", BlockStorage.types[i]);
|
|
|
|
}
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(storage2, "storage/storage");
|
|
|
|
for (int i = 0; i < BlockStorage2.types.length; i++) {
|
|
|
|
Core.proxy.registerSubBlockInventoryLocation(storage2, i, "storage/storage", BlockStorage2.types[i]);
|
|
|
|
}
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Dragoneggenergysiphoner, "machines/generators/dragon_egg_syphon");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Magicenergeyconverter, "machines/generators/magic_energy_converter");
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(AssemblyMachine, "machines/tier1_machines/assembly_machine");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(DieselGenerator, "machines/generators/diesel_generator");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(IndustrialElectrolyzer, "machines/tier1_machines/industrial_electrolyzer");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(MagicalAbsorber, "machines/generators/magic_energy_absorber");
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Semifluidgenerator, "machines/generators/semi_fluid_generator");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Gasturbine, "machines/generators/gas_turbine");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(AlloyFurnace, "machines/tier0_machines/alloy_furnace");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ChemicalReactor, "machines/tier1_machines/chemical_reactor");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Idsu, "machines/energy/ev_storage_transmitter");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Aesu, "machines/energy/ev_storage_adjust");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Lesu, "machines/energy/ev_storage_multi");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02: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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Lesu, "machines/energy/ev_storage_multi_storage");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Distillationtower, "machines/tier2_machines/distillation_tower");
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ElectricCraftingTable, "machines/tier1_machines/electric_crafting_table");
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(VacuumFreezer, "machines/tier2_machines/vacuum_freezer");
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(PlasmaGenerator, "machines/generators/plasma_generator");
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ComputerCube, "machines/machines/tier2_machines/computer_cube");
|
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-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(LightningRod, "machines/generators/lightning_rod");
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(industrialSawmill, "machines/tier2_machines/industrial_saw_mill");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Grinder, "machines/tier1_machines/grinder");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Generator, "machines/generators/generator");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Extractor, "machines/tier1_machines/extractor");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(Compressor, "machines/tier1_machines/compressor");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(ElectricFurnace, "machines/tier1_machines/electric_furnace");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(solarPanel, "machines/generators/solar_panel");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(waterMill, "machines/generators/water_mill");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
|
|
|
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(windMill, "machines/generators/wind_mill");
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(recycler, "machines/tier1_machines/recycler");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(batBox, "machines/energy/lv_storage");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(mfe, "machines/energy/mv_storage");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(mfsu, "machines/energy/hv_storage");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(lvt, "machines/energy/lv_transformer");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(mvt, "machines/energy/mv_transformer");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(hvt, "machines/energy/hv_transformer");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
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");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(hvt, "machines/tier0_machines/furnace");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
|
|
|
nuke = new BlockNuke();
|
2016-05-08 11:13:21 +02:00
|
|
|
registerBlock(nuke, "nuke");
|
2016-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(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-07-01 16:40:46 +02:00
|
|
|
Core.proxy.registerCustomBlockStateLocation(scrapboxinator, "machines/tier1_machines/scrapboxinator");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
|
2016-05-14 19:53:07 +02:00
|
|
|
distributor = new BlockDistributor();
|
|
|
|
registerBlock(distributor, "distributor");
|
|
|
|
|
2016-03-25 10:47:34 +01:00
|
|
|
registerOreDict();
|
|
|
|
Core.logHelper.info("TechReborns Blocks Loaded");
|
|
|
|
}
|
|
|
|
|
2016-05-08 11:13:21 +02:00
|
|
|
public static void registerBlock(Block block, String name){
|
|
|
|
block.setRegistryName(name);
|
|
|
|
GameRegistry.register(block);
|
|
|
|
GameRegistry.register(new ItemBlock(block), block.getRegistryName());
|
|
|
|
}
|
|
|
|
|
|
|
|
public static void registerBlock(Block block, Class<? extends ItemBlock> itemclass, String name){
|
|
|
|
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-03-25 10:47:34 +01:00
|
|
|
public static void registerOreDict()
|
|
|
|
{
|
2016-05-18 21:14:50 +02:00
|
|
|
for(String ore : BlockOre.ores){
|
|
|
|
OreDictionary.registerOre("ore" + StringUtils.toFirstCapital(ore), BlockOre.getOreByName(ore));
|
|
|
|
}
|
2016-04-10 23:50:05 +02:00
|
|
|
|
2016-05-18 21:14:50 +02:00
|
|
|
for(String ore : BlockOre2.ores){
|
|
|
|
OreDictionary.registerOre("ore" + StringUtils.toFirstCapital(ore), BlockOre2.getOreByName(ore));
|
|
|
|
}
|
2016-07-01 16:40:46 +02:00
|
|
|
|
|
|
|
for(String name : ArrayUtils.addAll(BlockStorage.types, BlockStorage2.types)){
|
|
|
|
OreDictionary.registerOre("block" + StringUtils.toFirstCapital(name), BlockStorage.getStorageBlockByName(name));
|
|
|
|
}
|
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-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-03-25 10:47:34 +01:00
|
|
|
}
|
2015-04-11 18:03:14 +02:00
|
|
|
|
|
|
|
}
|