Code formatter take 2
This commit is contained in:
parent
33985f1a31
commit
5eed5b161d
450 changed files with 32768 additions and 26684 deletions
|
@ -8,433 +8,540 @@ import net.minecraftforge.fml.common.registry.GameRegistry;
|
|||
import net.minecraftforge.oredict.OreDictionary;
|
||||
import reborncore.common.tile.TileMachineBase;
|
||||
import techreborn.Core;
|
||||
import techreborn.blocks.*;
|
||||
import techreborn.blocks.advanced_machine.*;
|
||||
import techreborn.blocks.generator.*;
|
||||
import techreborn.blocks.BlockComputerCube;
|
||||
import techreborn.blocks.BlockDigitalChest;
|
||||
import techreborn.blocks.BlockElectricCraftingTable;
|
||||
import techreborn.blocks.BlockFusionCoil;
|
||||
import techreborn.blocks.BlockFusionControlComputer;
|
||||
import techreborn.blocks.BlockHighlyAdvancedMachine;
|
||||
import techreborn.blocks.BlockIronFence;
|
||||
import techreborn.blocks.BlockMachineCasing;
|
||||
import techreborn.blocks.BlockMachineFrame;
|
||||
import techreborn.blocks.BlockNuke;
|
||||
import techreborn.blocks.BlockOre;
|
||||
import techreborn.blocks.BlockOre2;
|
||||
import techreborn.blocks.BlockPlayerDetector;
|
||||
import techreborn.blocks.BlockQuantumChest;
|
||||
import techreborn.blocks.BlockQuantumTank;
|
||||
import techreborn.blocks.BlockReinforcedGlass;
|
||||
import techreborn.blocks.BlockRubberLeaves;
|
||||
import techreborn.blocks.BlockRubberLog;
|
||||
import techreborn.blocks.BlockRubberPlank;
|
||||
import techreborn.blocks.BlockRubberSapling;
|
||||
import techreborn.blocks.BlockStorage;
|
||||
import techreborn.blocks.BlockStorage2;
|
||||
import techreborn.blocks.BlockSupercondensator;
|
||||
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.BlockHeatGenerator;
|
||||
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;
|
||||
import techreborn.blocks.iron_machines.BlockAlloyFurnace;
|
||||
import techreborn.blocks.iron_machines.BlockIronFurnace;
|
||||
import techreborn.blocks.machine.*;
|
||||
import techreborn.blocks.storage.*;
|
||||
import techreborn.blocks.tier1.*;
|
||||
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;
|
||||
import techreborn.blocks.transformers.BlockHVTransformer;
|
||||
import techreborn.blocks.transformers.BlockLVTransformer;
|
||||
import techreborn.blocks.transformers.BlockMVTransformer;
|
||||
import techreborn.itemblocks.*;
|
||||
import techreborn.tiles.*;
|
||||
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;
|
||||
import techreborn.tiles.TileAesu;
|
||||
import techreborn.tiles.TileAlloyFurnace;
|
||||
import techreborn.tiles.TileAlloySmelter;
|
||||
import techreborn.tiles.TileAssemblingMachine;
|
||||
import techreborn.tiles.TileBlastFurnace;
|
||||
import techreborn.tiles.TileCentrifuge;
|
||||
import techreborn.tiles.TileChargeBench;
|
||||
import techreborn.tiles.TileChemicalReactor;
|
||||
import techreborn.tiles.TileChunkLoader;
|
||||
import techreborn.tiles.TileDigitalChest;
|
||||
import techreborn.tiles.TileImplosionCompressor;
|
||||
import techreborn.tiles.TileIndustrialElectrolyzer;
|
||||
import techreborn.tiles.TileIndustrialGrinder;
|
||||
import techreborn.tiles.TileIndustrialSawmill;
|
||||
import techreborn.tiles.TileIronFurnace;
|
||||
import techreborn.tiles.TileMachineCasing;
|
||||
import techreborn.tiles.TileMatterFabricator;
|
||||
import techreborn.tiles.TilePlayerDectector;
|
||||
import techreborn.tiles.TileQuantumChest;
|
||||
import techreborn.tiles.TileQuantumTank;
|
||||
import techreborn.tiles.TileRollingMachine;
|
||||
import techreborn.tiles.TileScrapboxinator;
|
||||
import techreborn.tiles.TileVacuumFreezer;
|
||||
import techreborn.tiles.fusionReactor.TileEntityFusionController;
|
||||
import techreborn.tiles.generator.*;
|
||||
import techreborn.tiles.generator.TileDieselGenerator;
|
||||
import techreborn.tiles.generator.TileDragonEggSiphoner;
|
||||
import techreborn.tiles.generator.TileGasTurbine;
|
||||
import techreborn.tiles.generator.TileGenerator;
|
||||
import techreborn.tiles.generator.TileHeatGenerator;
|
||||
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;
|
||||
import techreborn.tiles.idsu.TileIDSU;
|
||||
import techreborn.tiles.lesu.TileLesu;
|
||||
import techreborn.tiles.lesu.TileLesuStorage;
|
||||
import techreborn.tiles.storage.TileBatBox;
|
||||
import techreborn.tiles.storage.TileMFE;
|
||||
import techreborn.tiles.storage.TileMFSU;
|
||||
import techreborn.tiles.teir1.*;
|
||||
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;
|
||||
import techreborn.tiles.transformers.TileHVTransformer;
|
||||
import techreborn.tiles.transformers.TileLVTransformer;
|
||||
import techreborn.tiles.transformers.TileMVTransformer;
|
||||
|
||||
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 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;
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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");
|
||||
|
||||
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");
|
||||
|
||||
playerDetector = new BlockPlayerDetector();
|
||||
GameRegistry.registerBlock(playerDetector, ItemBlockPlayerDetector.class, "playerDetector");
|
||||
GameRegistry.registerTileEntity(TilePlayerDectector.class, "TilePlayerDectectorTR");
|
||||
|
||||
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");
|
||||
|
||||
ore2 = new BlockOre2(Material.rock);
|
||||
GameRegistry.registerBlock(ore2, ItemBlockOre2.class, "techreborn.ore2");
|
||||
|
||||
storage = new BlockStorage(Material.iron);
|
||||
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
|
||||
|
||||
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");
|
||||
GameRegistry.registerTileEntity(TileLesu.class, "TileLesuTR");
|
||||
|
||||
Supercondensator = new BlockSupercondensator(Material.rock);
|
||||
GameRegistry.registerBlock(Supercondensator, "supercondensator");
|
||||
|
||||
LesuStorage = new BlockLESUStorage(Material.rock);
|
||||
GameRegistry.registerBlock(LesuStorage, "lesustorage");
|
||||
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");
|
||||
|
||||
Grinder = new BlockGrinder(Material.iron);
|
||||
GameRegistry.registerBlock(Grinder, "techreborn.grinder");
|
||||
GameRegistry.registerTileEntity(TileGrinder.class, "TileGrinderTR");
|
||||
|
||||
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");
|
||||
|
||||
solarPanel = new BlockSolarPanel();
|
||||
GameRegistry.registerBlock(solarPanel, "techreborn.solarpanel");
|
||||
GameRegistry.registerTileEntity(TileSolarPanel.class, "TileSolarPanel");
|
||||
|
||||
waterMill = new BlockWaterMill();
|
||||
GameRegistry.registerBlock(waterMill, "techreborn.watermill");
|
||||
GameRegistry.registerTileEntity(TileWaterMill.class, "TileWaterMill");
|
||||
|
||||
windMill = new BlockWindMill();
|
||||
GameRegistry.registerBlock(windMill, "techreborn.windmill");
|
||||
GameRegistry.registerTileEntity(TileWindMill.class, "TileWindMill");
|
||||
|
||||
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
|
||||
|
||||
rubberLog = new BlockRubberLog();
|
||||
GameRegistry.registerBlock(rubberLog, "rubberLog");
|
||||
|
||||
rubberPlanks = new BlockRubberPlank();
|
||||
GameRegistry.registerBlock(rubberPlanks, "rubberPlanks");
|
||||
|
||||
rubberLeaves = new BlockRubberLeaves();
|
||||
GameRegistry.registerBlock(rubberLeaves, "rubberLeaves");
|
||||
|
||||
rubberSapling = new BlockRubberSapling();
|
||||
GameRegistry.registerBlock(rubberSapling, ItemBlockRubberSapling.class, "rubberSapling");
|
||||
|
||||
ironFence = new BlockIronFence();
|
||||
GameRegistry.registerBlock(ironFence, "ironFence");
|
||||
|
||||
reinforcedglass = new BlockReinforcedGlass(Material.glass);
|
||||
GameRegistry.registerBlock(reinforcedglass, "reinforcedglass");
|
||||
|
||||
recycler = new BlockRecycler(Material.iron);
|
||||
GameRegistry.registerBlock(recycler, "recycler");
|
||||
GameRegistry.registerTileEntity(TileRecycler.class, "TileRecyclerTR");
|
||||
|
||||
batBox = new BlockBatBox();
|
||||
GameRegistry.registerBlock(batBox, "batBox");
|
||||
GameRegistry.registerTileEntity(TileBatBox.class, "TileBatBox");
|
||||
|
||||
mfe = new BlockMFE();
|
||||
GameRegistry.registerBlock(mfe, "mfe");
|
||||
GameRegistry.registerTileEntity(TileMFE.class, "TileMFE");
|
||||
|
||||
mfsu = new BlockMFSU();
|
||||
GameRegistry.registerBlock(mfsu, "mfsu");
|
||||
GameRegistry.registerTileEntity(TileMFSU.class, "TileMFSU");
|
||||
|
||||
lvt = new BlockLVTransformer();
|
||||
GameRegistry.registerBlock(lvt, "lvt");
|
||||
GameRegistry.registerTileEntity(TileLVTransformer.class, "TileLVTransformer");
|
||||
|
||||
mvt = new BlockMVTransformer();
|
||||
GameRegistry.registerBlock(mvt, "mvt");
|
||||
GameRegistry.registerTileEntity(TileMVTransformer.class, "TileMVTransformer");
|
||||
|
||||
hvt = new BlockHVTransformer();
|
||||
GameRegistry.registerBlock(hvt, "hvt");
|
||||
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformer");
|
||||
|
||||
ironFurnace = new BlockIronFurnace();
|
||||
GameRegistry.registerBlock(ironFurnace, "ironfurnace");
|
||||
GameRegistry.registerTileEntity(TileIronFurnace.class, "TileIronFurnaceTR");
|
||||
|
||||
nuke = new BlockNuke();
|
||||
GameRegistry.registerBlock(nuke, "nuke");
|
||||
|
||||
scrapboxinator = new BlockScrapboxinator(Material.iron);
|
||||
GameRegistry.registerBlock(scrapboxinator, "scrapboxinator");
|
||||
GameRegistry.registerTileEntity(TileScrapboxinator.class, "TileScrapboxinatorTR");
|
||||
|
||||
registerOreDict();
|
||||
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));
|
||||
|
||||
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);
|
||||
}
|
||||
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 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;
|
||||
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;
|
||||
|
||||
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;
|
||||
|
||||
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");
|
||||
|
||||
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");
|
||||
|
||||
playerDetector = new BlockPlayerDetector();
|
||||
GameRegistry.registerBlock(playerDetector, ItemBlockPlayerDetector.class, "playerDetector");
|
||||
GameRegistry.registerTileEntity(TilePlayerDectector.class, "TilePlayerDectectorTR");
|
||||
|
||||
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");
|
||||
|
||||
ore2 = new BlockOre2(Material.rock);
|
||||
GameRegistry.registerBlock(ore2, ItemBlockOre2.class, "techreborn.ore2");
|
||||
|
||||
storage = new BlockStorage(Material.iron);
|
||||
GameRegistry.registerBlock(storage, ItemBlockStorage.class, "techreborn.storage");
|
||||
|
||||
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");
|
||||
GameRegistry.registerTileEntity(TileLesu.class, "TileLesuTR");
|
||||
|
||||
Supercondensator = new BlockSupercondensator(Material.rock);
|
||||
GameRegistry.registerBlock(Supercondensator, "supercondensator");
|
||||
|
||||
LesuStorage = new BlockLESUStorage(Material.rock);
|
||||
GameRegistry.registerBlock(LesuStorage, "lesustorage");
|
||||
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");
|
||||
|
||||
Grinder = new BlockGrinder(Material.iron);
|
||||
GameRegistry.registerBlock(Grinder, "techreborn.grinder");
|
||||
GameRegistry.registerTileEntity(TileGrinder.class, "TileGrinderTR");
|
||||
|
||||
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");
|
||||
|
||||
solarPanel = new BlockSolarPanel();
|
||||
GameRegistry.registerBlock(solarPanel, "techreborn.solarpanel");
|
||||
GameRegistry.registerTileEntity(TileSolarPanel.class, "TileSolarPanel");
|
||||
|
||||
waterMill = new BlockWaterMill();
|
||||
GameRegistry.registerBlock(waterMill, "techreborn.watermill");
|
||||
GameRegistry.registerTileEntity(TileWaterMill.class, "TileWaterMill");
|
||||
|
||||
windMill = new BlockWindMill();
|
||||
GameRegistry.registerBlock(windMill, "techreborn.windmill");
|
||||
GameRegistry.registerTileEntity(TileWindMill.class, "TileWindMill");
|
||||
|
||||
GameRegistry.registerTileEntity(TileMachineBase.class, "TileMachineBaseTR");
|
||||
|
||||
rubberLog = new BlockRubberLog();
|
||||
GameRegistry.registerBlock(rubberLog, "rubberLog");
|
||||
|
||||
rubberPlanks = new BlockRubberPlank();
|
||||
GameRegistry.registerBlock(rubberPlanks, "rubberPlanks");
|
||||
|
||||
rubberLeaves = new BlockRubberLeaves();
|
||||
GameRegistry.registerBlock(rubberLeaves, "rubberLeaves");
|
||||
|
||||
rubberSapling = new BlockRubberSapling();
|
||||
GameRegistry.registerBlock(rubberSapling, ItemBlockRubberSapling.class, "rubberSapling");
|
||||
|
||||
ironFence = new BlockIronFence();
|
||||
GameRegistry.registerBlock(ironFence, "ironFence");
|
||||
|
||||
reinforcedglass = new BlockReinforcedGlass(Material.glass);
|
||||
GameRegistry.registerBlock(reinforcedglass, "reinforcedglass");
|
||||
|
||||
recycler = new BlockRecycler(Material.iron);
|
||||
GameRegistry.registerBlock(recycler, "recycler");
|
||||
GameRegistry.registerTileEntity(TileRecycler.class, "TileRecyclerTR");
|
||||
|
||||
batBox = new BlockBatBox();
|
||||
GameRegistry.registerBlock(batBox, "batBox");
|
||||
GameRegistry.registerTileEntity(TileBatBox.class, "TileBatBox");
|
||||
|
||||
mfe = new BlockMFE();
|
||||
GameRegistry.registerBlock(mfe, "mfe");
|
||||
GameRegistry.registerTileEntity(TileMFE.class, "TileMFE");
|
||||
|
||||
mfsu = new BlockMFSU();
|
||||
GameRegistry.registerBlock(mfsu, "mfsu");
|
||||
GameRegistry.registerTileEntity(TileMFSU.class, "TileMFSU");
|
||||
|
||||
lvt = new BlockLVTransformer();
|
||||
GameRegistry.registerBlock(lvt, "lvt");
|
||||
GameRegistry.registerTileEntity(TileLVTransformer.class, "TileLVTransformer");
|
||||
|
||||
mvt = new BlockMVTransformer();
|
||||
GameRegistry.registerBlock(mvt, "mvt");
|
||||
GameRegistry.registerTileEntity(TileMVTransformer.class, "TileMVTransformer");
|
||||
|
||||
hvt = new BlockHVTransformer();
|
||||
GameRegistry.registerBlock(hvt, "hvt");
|
||||
GameRegistry.registerTileEntity(TileHVTransformer.class, "TileHVTransformer");
|
||||
|
||||
ironFurnace = new BlockIronFurnace();
|
||||
GameRegistry.registerBlock(ironFurnace, "ironfurnace");
|
||||
GameRegistry.registerTileEntity(TileIronFurnace.class, "TileIronFurnaceTR");
|
||||
|
||||
nuke = new BlockNuke();
|
||||
GameRegistry.registerBlock(nuke, "nuke");
|
||||
|
||||
scrapboxinator = new BlockScrapboxinator(Material.iron);
|
||||
GameRegistry.registerBlock(scrapboxinator, "scrapboxinator");
|
||||
GameRegistry.registerTileEntity(TileScrapboxinator.class, "TileScrapboxinatorTR");
|
||||
|
||||
registerOreDict();
|
||||
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));
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -10,193 +10,222 @@ import techreborn.blocks.fluid.BlockFluidTechReborn;
|
|||
import techreborn.blocks.fluid.TechRebornFluid;
|
||||
import techreborn.lib.ModInfo;
|
||||
|
||||
public class ModFluids {
|
||||
public class ModFluids
|
||||
{
|
||||
|
||||
public static Fluid fluidberylium = new TechRebornFluid("fluidberylium");
|
||||
public static BlockFluidBase BlockFluidBerylium;
|
||||
public static Fluid fluidberylium = new TechRebornFluid("fluidberylium");
|
||||
public static BlockFluidBase BlockFluidBerylium;
|
||||
|
||||
public static Fluid fluidcalcium = new TechRebornFluid("fluidcalcium");
|
||||
public static BlockFluidBase BlockFluidCalcium;
|
||||
public static Fluid fluidcalcium = new TechRebornFluid("fluidcalcium");
|
||||
public static BlockFluidBase BlockFluidCalcium;
|
||||
|
||||
public static Fluid fluidcalciumcarbonate = new TechRebornFluid("fluidcalciumcarbonate");
|
||||
public static BlockFluidBase BlockFluidCalciumCarbonate;
|
||||
public static Fluid fluidcalciumcarbonate = new TechRebornFluid("fluidcalciumcarbonate");
|
||||
public static BlockFluidBase BlockFluidCalciumCarbonate;
|
||||
|
||||
public static Fluid fluidChlorite = new TechRebornFluid("fluidchlorite");
|
||||
public static BlockFluidBase BlockFluidChlorite;
|
||||
public static Fluid fluidChlorite = new TechRebornFluid("fluidchlorite");
|
||||
public static BlockFluidBase BlockFluidChlorite;
|
||||
|
||||
public static Fluid fluidDeuterium = new TechRebornFluid("fluiddeuterium");
|
||||
public static BlockFluidBase BlockFluidDeuterium;
|
||||
public static Fluid fluidDeuterium = new TechRebornFluid("fluiddeuterium");
|
||||
public static BlockFluidBase BlockFluidDeuterium;
|
||||
|
||||
public static Fluid fluidGlyceryl = new TechRebornFluid("fluidglyceryl");
|
||||
public static BlockFluidBase BlockFluidGlyceryl;
|
||||
public static Fluid fluidGlyceryl = new TechRebornFluid("fluidglyceryl");
|
||||
public static BlockFluidBase BlockFluidGlyceryl;
|
||||
|
||||
public static Fluid fluidHelium = new TechRebornFluid("fluidhelium");
|
||||
public static BlockFluidBase BlockFluidHelium;
|
||||
public static Fluid fluidHelium = new TechRebornFluid("fluidhelium");
|
||||
public static BlockFluidBase BlockFluidHelium;
|
||||
|
||||
public static Fluid fluidHelium3 = new TechRebornFluid("fluidhelium3");
|
||||
public static BlockFluidBase BlockFluidHelium3;
|
||||
public static Fluid fluidHelium3 = new TechRebornFluid("fluidhelium3");
|
||||
public static BlockFluidBase BlockFluidHelium3;
|
||||
|
||||
public static Fluid fluidHeliumplasma = new TechRebornFluid("fluidheliumplasma");
|
||||
public static BlockFluidBase BlockFluidHeliumplasma;
|
||||
public static Fluid fluidHeliumplasma = new TechRebornFluid("fluidheliumplasma");
|
||||
public static BlockFluidBase BlockFluidHeliumplasma;
|
||||
|
||||
public static Fluid fluidHydrogen = new TechRebornFluid("fluidhydrogen");
|
||||
public static BlockFluidBase BlockFluidHydrogen;
|
||||
public static Fluid fluidHydrogen = new TechRebornFluid("fluidhydrogen");
|
||||
public static BlockFluidBase BlockFluidHydrogen;
|
||||
|
||||
public static Fluid fluidLithium = new TechRebornFluid("fluidlithium");
|
||||
public static BlockFluidBase BlockFluidLithium;
|
||||
public static Fluid fluidLithium = new TechRebornFluid("fluidlithium");
|
||||
public static BlockFluidBase BlockFluidLithium;
|
||||
|
||||
public static Fluid fluidMercury = new TechRebornFluid("fluidmercury");
|
||||
public static BlockFluidBase BlockFluidMercury;
|
||||
public static Fluid fluidMercury = new TechRebornFluid("fluidmercury");
|
||||
public static BlockFluidBase BlockFluidMercury;
|
||||
|
||||
public static Fluid fluidMethane = new TechRebornFluid("fluidmethane");
|
||||
public static BlockFluidBase BlockFluidMethane;
|
||||
public static Fluid fluidMethane = new TechRebornFluid("fluidmethane");
|
||||
public static BlockFluidBase BlockFluidMethane;
|
||||
|
||||
public static Fluid fluidNitrocoalfuel = new TechRebornFluid("fluidnitrocoalfuel");
|
||||
public static BlockFluidBase BlockFluidNitrocoalfuel;
|
||||
public static Fluid fluidNitrocoalfuel = new TechRebornFluid("fluidnitrocoalfuel");
|
||||
public static BlockFluidBase BlockFluidNitrocoalfuel;
|
||||
|
||||
public static Fluid fluidNitrofuel = new TechRebornFluid("fluidnitrofuel");
|
||||
public static BlockFluidBase BlockFluidNitrofuel;
|
||||
public static Fluid fluidNitrofuel = new TechRebornFluid("fluidnitrofuel");
|
||||
public static BlockFluidBase BlockFluidNitrofuel;
|
||||
|
||||
public static Fluid fluidNitrogen = new TechRebornFluid("fluidnitrogen");
|
||||
public static BlockFluidBase BlockFluidNitrogen;
|
||||
public static Fluid fluidNitrogen = new TechRebornFluid("fluidnitrogen");
|
||||
public static BlockFluidBase BlockFluidNitrogen;
|
||||
|
||||
public static Fluid fluidNitrogendioxide = new TechRebornFluid("fluidnitrogendioxide");
|
||||
public static BlockFluidBase BlockFluidNitrogendioxide;
|
||||
public static Fluid fluidNitrogendioxide = new TechRebornFluid("fluidnitrogendioxide");
|
||||
public static BlockFluidBase BlockFluidNitrogendioxide;
|
||||
|
||||
public static Fluid fluidPotassium = new TechRebornFluid("fluidpotassium");
|
||||
public static BlockFluidBase BlockFluidPotassium;
|
||||
public static Fluid fluidPotassium = new TechRebornFluid("fluidpotassium");
|
||||
public static BlockFluidBase BlockFluidPotassium;
|
||||
|
||||
public static Fluid fluidSilicon = new TechRebornFluid("fluidsilicon");
|
||||
public static BlockFluidBase BlockFluidSilicon;
|
||||
public static Fluid fluidSilicon = new TechRebornFluid("fluidsilicon");
|
||||
public static BlockFluidBase BlockFluidSilicon;
|
||||
|
||||
public static Fluid fluidSodium = new TechRebornFluid("fluidsodium");
|
||||
public static BlockFluidBase BlockFluidSodium;
|
||||
public static Fluid fluidSodium = new TechRebornFluid("fluidsodium");
|
||||
public static BlockFluidBase BlockFluidSodium;
|
||||
|
||||
public static Fluid fluidSodiumpersulfate = new TechRebornFluid("fluidsodiumpersulfate");
|
||||
public static BlockFluidBase BlockFluidSodiumpersulfate;
|
||||
public static Fluid fluidSodiumpersulfate = new TechRebornFluid("fluidsodiumpersulfate");
|
||||
public static BlockFluidBase BlockFluidSodiumpersulfate;
|
||||
|
||||
public static Fluid fluidTritium = new TechRebornFluid("fluidtritium");
|
||||
public static BlockFluidBase BlockFluidTritium;
|
||||
public static Fluid fluidTritium = new TechRebornFluid("fluidtritium");
|
||||
public static BlockFluidBase BlockFluidTritium;
|
||||
|
||||
public static Fluid fluidWolframium = new TechRebornFluid("fluidwolframium");
|
||||
public static BlockFluidBase BlockFluidWolframium;
|
||||
public static Fluid fluidWolframium = new TechRebornFluid("fluidwolframium");
|
||||
public static BlockFluidBase BlockFluidWolframium;
|
||||
|
||||
public static void init() {
|
||||
FluidRegistry.registerFluid(fluidberylium);
|
||||
BlockFluidBerylium = new BlockFluidTechReborn(fluidberylium, Material.water, "techreborn.berylium");
|
||||
GameRegistry.registerBlock(BlockFluidBerylium, ModInfo.MOD_ID + "_" + BlockFluidBerylium.getUnlocalizedName().substring(5));
|
||||
fluidberylium.setUnlocalizedName(BlockFluidBerylium.getUnlocalizedName());
|
||||
public static void init()
|
||||
{
|
||||
FluidRegistry.registerFluid(fluidberylium);
|
||||
BlockFluidBerylium = new BlockFluidTechReborn(fluidberylium, Material.water, "techreborn.berylium");
|
||||
GameRegistry.registerBlock(BlockFluidBerylium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidBerylium.getUnlocalizedName().substring(5));
|
||||
fluidberylium.setUnlocalizedName(BlockFluidBerylium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidcalcium);
|
||||
BlockFluidCalcium = new BlockFluidTechReborn(fluidcalcium, Material.water, "techreborn.calcium");
|
||||
GameRegistry.registerBlock(BlockFluidCalcium, ModInfo.MOD_ID + "_" + BlockFluidCalcium.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalcium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidcalcium);
|
||||
BlockFluidCalcium = new BlockFluidTechReborn(fluidcalcium, Material.water, "techreborn.calcium");
|
||||
GameRegistry.registerBlock(BlockFluidCalcium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidCalcium.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalcium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidcalciumcarbonate);
|
||||
BlockFluidCalciumCarbonate = new BlockFluidTechReborn(fluidcalciumcarbonate, Material.water, "techreborn.calciumcarbonate");
|
||||
GameRegistry.registerBlock(BlockFluidCalciumCarbonate, ModInfo.MOD_ID + "_" + BlockFluidCalciumCarbonate.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalciumCarbonate.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidcalciumcarbonate);
|
||||
BlockFluidCalciumCarbonate = new BlockFluidTechReborn(fluidcalciumcarbonate, Material.water,
|
||||
"techreborn.calciumcarbonate");
|
||||
GameRegistry.registerBlock(BlockFluidCalciumCarbonate,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidCalciumCarbonate.getUnlocalizedName().substring(5));
|
||||
fluidcalcium.setUnlocalizedName(BlockFluidCalciumCarbonate.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidChlorite);
|
||||
BlockFluidChlorite = new BlockFluidTechReborn(fluidChlorite, Material.water, "techreborn.chlorite");
|
||||
GameRegistry.registerBlock(BlockFluidChlorite, ModInfo.MOD_ID + "_" + BlockFluidChlorite.getUnlocalizedName().substring(5));
|
||||
fluidChlorite.setUnlocalizedName(BlockFluidChlorite.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidChlorite);
|
||||
BlockFluidChlorite = new BlockFluidTechReborn(fluidChlorite, Material.water, "techreborn.chlorite");
|
||||
GameRegistry.registerBlock(BlockFluidChlorite,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidChlorite.getUnlocalizedName().substring(5));
|
||||
fluidChlorite.setUnlocalizedName(BlockFluidChlorite.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidDeuterium);
|
||||
BlockFluidDeuterium = new BlockFluidTechReborn(fluidDeuterium, Material.water, "techreborn.deuterium");
|
||||
GameRegistry.registerBlock(BlockFluidDeuterium, ModInfo.MOD_ID + "_" + BlockFluidDeuterium.getUnlocalizedName().substring(5));
|
||||
fluidDeuterium.setUnlocalizedName(BlockFluidDeuterium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidDeuterium);
|
||||
BlockFluidDeuterium = new BlockFluidTechReborn(fluidDeuterium, Material.water, "techreborn.deuterium");
|
||||
GameRegistry.registerBlock(BlockFluidDeuterium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidDeuterium.getUnlocalizedName().substring(5));
|
||||
fluidDeuterium.setUnlocalizedName(BlockFluidDeuterium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidGlyceryl);
|
||||
BlockFluidGlyceryl = new BlockFluidTechReborn(fluidGlyceryl, Material.water, "techreborn.glyceryl");
|
||||
GameRegistry.registerBlock(BlockFluidGlyceryl, ModInfo.MOD_ID + "_" + BlockFluidGlyceryl.getUnlocalizedName().substring(5));
|
||||
fluidGlyceryl.setUnlocalizedName(BlockFluidGlyceryl.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidGlyceryl);
|
||||
BlockFluidGlyceryl = new BlockFluidTechReborn(fluidGlyceryl, Material.water, "techreborn.glyceryl");
|
||||
GameRegistry.registerBlock(BlockFluidGlyceryl,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidGlyceryl.getUnlocalizedName().substring(5));
|
||||
fluidGlyceryl.setUnlocalizedName(BlockFluidGlyceryl.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidHelium);
|
||||
BlockFluidHelium = new BlockFluidTechReborn(fluidHelium, Material.water, "techreborn.helium");
|
||||
GameRegistry.registerBlock(BlockFluidHelium, ModInfo.MOD_ID + "_" + BlockFluidHelium.getUnlocalizedName().substring(5));
|
||||
fluidHelium.setUnlocalizedName(BlockFluidHelium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidHelium);
|
||||
BlockFluidHelium = new BlockFluidTechReborn(fluidHelium, Material.water, "techreborn.helium");
|
||||
GameRegistry.registerBlock(BlockFluidHelium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidHelium.getUnlocalizedName().substring(5));
|
||||
fluidHelium.setUnlocalizedName(BlockFluidHelium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidHelium3);
|
||||
BlockFluidHelium3 = new BlockFluidTechReborn(fluidHelium3, Material.water, "techreborn.helium3");
|
||||
GameRegistry.registerBlock(BlockFluidHelium3, ModInfo.MOD_ID + "_" + BlockFluidHelium3.getUnlocalizedName().substring(5));
|
||||
fluidHelium3.setUnlocalizedName(BlockFluidHelium3.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidHelium3);
|
||||
BlockFluidHelium3 = new BlockFluidTechReborn(fluidHelium3, Material.water, "techreborn.helium3");
|
||||
GameRegistry.registerBlock(BlockFluidHelium3,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidHelium3.getUnlocalizedName().substring(5));
|
||||
fluidHelium3.setUnlocalizedName(BlockFluidHelium3.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidHeliumplasma);
|
||||
BlockFluidHeliumplasma = new BlockFluidTechReborn(fluidHeliumplasma, Material.water, "techreborn.heliumplasma");
|
||||
GameRegistry.registerBlock(BlockFluidHeliumplasma, ModInfo.MOD_ID + "_" + BlockFluidHeliumplasma.getUnlocalizedName().substring(5));
|
||||
fluidHeliumplasma.setUnlocalizedName(fluidHeliumplasma.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidHeliumplasma);
|
||||
BlockFluidHeliumplasma = new BlockFluidTechReborn(fluidHeliumplasma, Material.water, "techreborn.heliumplasma");
|
||||
GameRegistry.registerBlock(BlockFluidHeliumplasma,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidHeliumplasma.getUnlocalizedName().substring(5));
|
||||
fluidHeliumplasma.setUnlocalizedName(fluidHeliumplasma.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidHydrogen);
|
||||
BlockFluidHydrogen = new BlockFluidTechReborn(fluidHydrogen, Material.water, "techreborn.hydrogen");
|
||||
GameRegistry.registerBlock(BlockFluidHydrogen, ModInfo.MOD_ID + "_" + BlockFluidHydrogen.getUnlocalizedName().substring(5));
|
||||
fluidHydrogen.setUnlocalizedName(fluidHydrogen.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidHydrogen);
|
||||
BlockFluidHydrogen = new BlockFluidTechReborn(fluidHydrogen, Material.water, "techreborn.hydrogen");
|
||||
GameRegistry.registerBlock(BlockFluidHydrogen,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidHydrogen.getUnlocalizedName().substring(5));
|
||||
fluidHydrogen.setUnlocalizedName(fluidHydrogen.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidLithium);
|
||||
BlockFluidLithium = new BlockFluidTechReborn(fluidLithium, Material.water, "techreborn.lithium");
|
||||
GameRegistry.registerBlock(BlockFluidLithium, ModInfo.MOD_ID + "_" + BlockFluidLithium.getUnlocalizedName().substring(5));
|
||||
fluidLithium.setUnlocalizedName(fluidLithium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidLithium);
|
||||
BlockFluidLithium = new BlockFluidTechReborn(fluidLithium, Material.water, "techreborn.lithium");
|
||||
GameRegistry.registerBlock(BlockFluidLithium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidLithium.getUnlocalizedName().substring(5));
|
||||
fluidLithium.setUnlocalizedName(fluidLithium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidMercury);
|
||||
BlockFluidMercury = new BlockFluidTechReborn(fluidMercury, Material.water, "techreborn.mercury");
|
||||
GameRegistry.registerBlock(BlockFluidMercury, ModInfo.MOD_ID + "_" + BlockFluidMercury.getUnlocalizedName().substring(5));
|
||||
fluidMercury.setUnlocalizedName(fluidMercury.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidMercury);
|
||||
BlockFluidMercury = new BlockFluidTechReborn(fluidMercury, Material.water, "techreborn.mercury");
|
||||
GameRegistry.registerBlock(BlockFluidMercury,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidMercury.getUnlocalizedName().substring(5));
|
||||
fluidMercury.setUnlocalizedName(fluidMercury.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidMethane);
|
||||
BlockFluidMethane = new BlockFluidTechReborn(fluidMethane, Material.water, "techreborn.methane");
|
||||
GameRegistry.registerBlock(BlockFluidMethane, ModInfo.MOD_ID + "_" + BlockFluidMethane.getUnlocalizedName().substring(5));
|
||||
fluidMethane.setUnlocalizedName(fluidMethane.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidMethane);
|
||||
BlockFluidMethane = new BlockFluidTechReborn(fluidMethane, Material.water, "techreborn.methane");
|
||||
GameRegistry.registerBlock(BlockFluidMethane,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidMethane.getUnlocalizedName().substring(5));
|
||||
fluidMethane.setUnlocalizedName(fluidMethane.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidNitrocoalfuel);
|
||||
BlockFluidNitrocoalfuel = new BlockFluidTechReborn(fluidNitrocoalfuel, Material.water, "techreborn.nitrocoalfuel");
|
||||
GameRegistry.registerBlock(BlockFluidNitrocoalfuel, ModInfo.MOD_ID + "_" + BlockFluidNitrocoalfuel.getUnlocalizedName().substring(5));
|
||||
fluidNitrocoalfuel.setUnlocalizedName(fluidNitrocoalfuel.getUnlocalizedName());
|
||||
FluidPowerManager.fluidPowerValues.put(fluidNitrocoalfuel, 48.0);
|
||||
FluidRegistry.registerFluid(fluidNitrocoalfuel);
|
||||
BlockFluidNitrocoalfuel = new BlockFluidTechReborn(fluidNitrocoalfuel, Material.water,
|
||||
"techreborn.nitrocoalfuel");
|
||||
GameRegistry.registerBlock(BlockFluidNitrocoalfuel,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidNitrocoalfuel.getUnlocalizedName().substring(5));
|
||||
fluidNitrocoalfuel.setUnlocalizedName(fluidNitrocoalfuel.getUnlocalizedName());
|
||||
FluidPowerManager.fluidPowerValues.put(fluidNitrocoalfuel, 48.0);
|
||||
|
||||
FluidRegistry.registerFluid(fluidNitrofuel);
|
||||
BlockFluidNitrofuel = new BlockFluidTechReborn(fluidNitrofuel, Material.water, "techreborn.nitrofuel");
|
||||
GameRegistry.registerBlock(BlockFluidNitrofuel, ModInfo.MOD_ID + "_" + BlockFluidNitrofuel.getUnlocalizedName().substring(5));
|
||||
fluidNitrofuel.setUnlocalizedName(fluidNitrofuel.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidNitrofuel);
|
||||
BlockFluidNitrofuel = new BlockFluidTechReborn(fluidNitrofuel, Material.water, "techreborn.nitrofuel");
|
||||
GameRegistry.registerBlock(BlockFluidNitrofuel,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidNitrofuel.getUnlocalizedName().substring(5));
|
||||
fluidNitrofuel.setUnlocalizedName(fluidNitrofuel.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidNitrogen);
|
||||
BlockFluidNitrogen = new BlockFluidTechReborn(fluidNitrogen, Material.water, "techreborn.nitrogen");
|
||||
GameRegistry.registerBlock(BlockFluidNitrogen, ModInfo.MOD_ID + "_" + BlockFluidNitrogen.getUnlocalizedName().substring(5));
|
||||
fluidNitrogen.setUnlocalizedName(fluidNitrogen.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidNitrogen);
|
||||
BlockFluidNitrogen = new BlockFluidTechReborn(fluidNitrogen, Material.water, "techreborn.nitrogen");
|
||||
GameRegistry.registerBlock(BlockFluidNitrogen,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidNitrogen.getUnlocalizedName().substring(5));
|
||||
fluidNitrogen.setUnlocalizedName(fluidNitrogen.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidNitrogendioxide);
|
||||
BlockFluidNitrogendioxide = new BlockFluidTechReborn(fluidNitrogendioxide, Material.water, "techreborn.nitrogendioxide");
|
||||
GameRegistry.registerBlock(BlockFluidNitrogendioxide, ModInfo.MOD_ID + "_" + BlockFluidNitrogendioxide.getUnlocalizedName().substring(5));
|
||||
fluidNitrogendioxide.setUnlocalizedName(fluidNitrogendioxide.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidNitrogendioxide);
|
||||
BlockFluidNitrogendioxide = new BlockFluidTechReborn(fluidNitrogendioxide, Material.water,
|
||||
"techreborn.nitrogendioxide");
|
||||
GameRegistry.registerBlock(BlockFluidNitrogendioxide,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidNitrogendioxide.getUnlocalizedName().substring(5));
|
||||
fluidNitrogendioxide.setUnlocalizedName(fluidNitrogendioxide.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidPotassium);
|
||||
BlockFluidPotassium = new BlockFluidTechReborn(fluidPotassium, Material.water, "techreborn.potassium");
|
||||
GameRegistry.registerBlock(BlockFluidPotassium, ModInfo.MOD_ID + "_" + BlockFluidPotassium.getUnlocalizedName().substring(5));
|
||||
fluidPotassium.setUnlocalizedName(fluidPotassium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidPotassium);
|
||||
BlockFluidPotassium = new BlockFluidTechReborn(fluidPotassium, Material.water, "techreborn.potassium");
|
||||
GameRegistry.registerBlock(BlockFluidPotassium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidPotassium.getUnlocalizedName().substring(5));
|
||||
fluidPotassium.setUnlocalizedName(fluidPotassium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidSilicon);
|
||||
BlockFluidSilicon = new BlockFluidTechReborn(fluidSilicon, Material.water, "techreborn.silicon");
|
||||
GameRegistry.registerBlock(BlockFluidSilicon, ModInfo.MOD_ID + "_" + BlockFluidSilicon.getUnlocalizedName().substring(5));
|
||||
fluidSilicon.setUnlocalizedName(fluidSilicon.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidSilicon);
|
||||
BlockFluidSilicon = new BlockFluidTechReborn(fluidSilicon, Material.water, "techreborn.silicon");
|
||||
GameRegistry.registerBlock(BlockFluidSilicon,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidSilicon.getUnlocalizedName().substring(5));
|
||||
fluidSilicon.setUnlocalizedName(fluidSilicon.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidSodium);
|
||||
BlockFluidSodium = new BlockFluidTechReborn(fluidSodium, Material.water, "techreborn.sodium");
|
||||
GameRegistry.registerBlock(BlockFluidSodium, ModInfo.MOD_ID + "_" + BlockFluidSodium.getUnlocalizedName().substring(5));
|
||||
fluidSodium.setUnlocalizedName(fluidSodium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidSodium);
|
||||
BlockFluidSodium = new BlockFluidTechReborn(fluidSodium, Material.water, "techreborn.sodium");
|
||||
GameRegistry.registerBlock(BlockFluidSodium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidSodium.getUnlocalizedName().substring(5));
|
||||
fluidSodium.setUnlocalizedName(fluidSodium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidSodiumpersulfate);
|
||||
BlockFluidSodiumpersulfate = new BlockFluidTechReborn(fluidSodiumpersulfate, Material.water, "techreborn.sodiumpersulfate");
|
||||
GameRegistry.registerBlock(BlockFluidSodiumpersulfate, ModInfo.MOD_ID + "_" + BlockFluidSodiumpersulfate.getUnlocalizedName().substring(5));
|
||||
fluidSodiumpersulfate.setUnlocalizedName(fluidSodiumpersulfate.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidSodiumpersulfate);
|
||||
BlockFluidSodiumpersulfate = new BlockFluidTechReborn(fluidSodiumpersulfate, Material.water,
|
||||
"techreborn.sodiumpersulfate");
|
||||
GameRegistry.registerBlock(BlockFluidSodiumpersulfate,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidSodiumpersulfate.getUnlocalizedName().substring(5));
|
||||
fluidSodiumpersulfate.setUnlocalizedName(fluidSodiumpersulfate.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidTritium);
|
||||
BlockFluidTritium = new BlockFluidTechReborn(fluidTritium, Material.water, "techreborn.tritium");
|
||||
GameRegistry.registerBlock(BlockFluidTritium, ModInfo.MOD_ID + "_" + BlockFluidTritium.getUnlocalizedName().substring(5));
|
||||
fluidTritium.setUnlocalizedName(fluidTritium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidTritium);
|
||||
BlockFluidTritium = new BlockFluidTechReborn(fluidTritium, Material.water, "techreborn.tritium");
|
||||
GameRegistry.registerBlock(BlockFluidTritium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidTritium.getUnlocalizedName().substring(5));
|
||||
fluidTritium.setUnlocalizedName(fluidTritium.getUnlocalizedName());
|
||||
|
||||
FluidRegistry.registerFluid(fluidWolframium);
|
||||
BlockFluidWolframium = new BlockFluidTechReborn(fluidWolframium, Material.water, "techreborn.wolframium");
|
||||
GameRegistry.registerBlock(BlockFluidWolframium, ModInfo.MOD_ID + "_" + BlockFluidWolframium.getUnlocalizedName().substring(5));
|
||||
fluidWolframium.setUnlocalizedName(fluidWolframium.getUnlocalizedName());
|
||||
FluidRegistry.registerFluid(fluidWolframium);
|
||||
BlockFluidWolframium = new BlockFluidTechReborn(fluidWolframium, Material.water, "techreborn.wolframium");
|
||||
GameRegistry.registerBlock(BlockFluidWolframium,
|
||||
ModInfo.MOD_ID + "_" + BlockFluidWolframium.getUnlocalizedName().substring(5));
|
||||
fluidWolframium.setUnlocalizedName(fluidWolframium.getUnlocalizedName());
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -3,30 +3,47 @@ package techreborn.init;
|
|||
import net.minecraft.util.WeightedRandomChestContent;
|
||||
|
||||
//TODO 1.9 nope
|
||||
public class ModLoot {
|
||||
//
|
||||
// public static WeightedRandomChestContent rubberSaplingLoot = new WeightedRandomChestContent(new ItemStack(ModBlocks.rubberSapling), 1, 3, 25);
|
||||
// public static WeightedRandomChestContent copperIngotLoot = new WeightedRandomChestContent(ItemIngots.getIngotByName("copper"), 1, 4, 20);
|
||||
// public static WeightedRandomChestContent tinIngotLoot = new WeightedRandomChestContent(ItemIngots.getIngotByName("tin"), 1, 4, 20);
|
||||
// public static WeightedRandomChestContent steelIngotLoot = new WeightedRandomChestContent(ItemIngots.getIngotByName("steel"), 1, 3, 5);
|
||||
|
||||
public static void init(){
|
||||
// if(ConfigTechReborn.RubberSaplingLoot){
|
||||
// generate(rubberSaplingLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.CopperIngotsLoot){
|
||||
// generate(copperIngotLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.TinIngotsLoot){
|
||||
// generate(tinIngotLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.SteelIngotsLoot){
|
||||
// generate(steelIngotLoot);
|
||||
// }
|
||||
public class ModLoot
|
||||
{
|
||||
//
|
||||
// public static WeightedRandomChestContent rubberSaplingLoot = new
|
||||
// WeightedRandomChestContent(new ItemStack(ModBlocks.rubberSapling), 1, 3,
|
||||
// 25);
|
||||
// public static WeightedRandomChestContent copperIngotLoot = new
|
||||
// WeightedRandomChestContent(ItemIngots.getIngotByName("copper"), 1, 4,
|
||||
// 20);
|
||||
// public static WeightedRandomChestContent tinIngotLoot = new
|
||||
// WeightedRandomChestContent(ItemIngots.getIngotByName("tin"), 1, 4, 20);
|
||||
// public static WeightedRandomChestContent steelIngotLoot = new
|
||||
// WeightedRandomChestContent(ItemIngots.getIngotByName("steel"), 1, 3, 5);
|
||||
|
||||
public static void init()
|
||||
{
|
||||
// if(ConfigTechReborn.RubberSaplingLoot){
|
||||
// generate(rubberSaplingLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.CopperIngotsLoot){
|
||||
// generate(copperIngotLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.TinIngotsLoot){
|
||||
// generate(tinIngotLoot);
|
||||
// }
|
||||
// if(ConfigTechReborn.SteelIngotsLoot){
|
||||
// generate(steelIngotLoot);
|
||||
// }
|
||||
}
|
||||
|
||||
public static void generate(WeightedRandomChestContent chestContent)
|
||||
{
|
||||
// for (String category :
|
||||
// Arrays.asList(ChestGenHooks.VILLAGE_BLACKSMITH,
|
||||
// ChestGenHooks.MINESHAFT_CORRIDOR, ChestGenHooks.PYRAMID_DESERT_CHEST,
|
||||
// ChestGenHooks.PYRAMID_JUNGLE_CHEST,
|
||||
// ChestGenHooks.PYRAMID_JUNGLE_DISPENSER,
|
||||
// ChestGenHooks.STRONGHOLD_CORRIDOR, ChestGenHooks.STRONGHOLD_LIBRARY,
|
||||
// ChestGenHooks.STRONGHOLD_CROSSING, ChestGenHooks.BONUS_CHEST,
|
||||
// ChestGenHooks.DUNGEON_CHEST)) {
|
||||
// ChestGenHooks.addItem(category, chestContent);
|
||||
// }
|
||||
}
|
||||
public static void generate(WeightedRandomChestContent chestContent) {
|
||||
// for (String category : Arrays.asList(ChestGenHooks.VILLAGE_BLACKSMITH, ChestGenHooks.MINESHAFT_CORRIDOR, ChestGenHooks.PYRAMID_DESERT_CHEST, ChestGenHooks.PYRAMID_JUNGLE_CHEST, ChestGenHooks.PYRAMID_JUNGLE_DISPENSER, ChestGenHooks.STRONGHOLD_CORRIDOR, ChestGenHooks.STRONGHOLD_LIBRARY, ChestGenHooks.STRONGHOLD_CROSSING, ChestGenHooks.BONUS_CHEST, ChestGenHooks.DUNGEON_CHEST)) {
|
||||
// ChestGenHooks.addItem(category, chestContent);
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,29 +1,32 @@
|
|||
package techreborn.init;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
import java.util.HashMap;
|
||||
|
||||
public class ModParts {
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
||||
public static HashMap<Integer, ItemStack> stackCable = new HashMap<Integer, ItemStack>();
|
||||
public class ModParts
|
||||
{
|
||||
|
||||
public static void init() { //TODO 1.8
|
||||
// if (Loader.isModLoaded("IC2")) {
|
||||
// for (int i = 0; i < 11; i++) {
|
||||
// CablePart part = new CablePart();
|
||||
// part.setType(i);
|
||||
// ModPartRegistry.registerPart(part);
|
||||
// }
|
||||
// }
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.fmp.FMPFactory",
|
||||
// "ForgeMultipart");
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.QLib.QModPartFactory", "qmunitylib");
|
||||
// ModPartRegistry.addAllPartsToSystems();
|
||||
// for (IPartProvider provider : ModPartRegistry.providers) {
|
||||
// if (provider.modID().equals("ForgeMultipart")) {
|
||||
// ModPartRegistry.masterProvider = provider;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
public static HashMap<Integer, ItemStack> stackCable = new HashMap<Integer, ItemStack>();
|
||||
|
||||
public static void init()
|
||||
{ // TODO 1.8
|
||||
// if (Loader.isModLoaded("IC2")) {
|
||||
// for (int i = 0; i < 11; i++) {
|
||||
// CablePart part = new CablePart();
|
||||
// part.setType(i);
|
||||
// ModPartRegistry.registerPart(part);
|
||||
// }
|
||||
// }
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.fmp.FMPFactory",
|
||||
// "ForgeMultipart");
|
||||
// ModPartRegistry.addProvider("techreborn.partSystem.QLib.QModPartFactory",
|
||||
// "qmunitylib");
|
||||
// ModPartRegistry.addAllPartsToSystems();
|
||||
// for (IPartProvider provider : ModPartRegistry.providers) {
|
||||
// if (provider.modID().equals("ForgeMultipart")) {
|
||||
// ModPartRegistry.masterProvider = provider;
|
||||
// }
|
||||
// }
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -1,24 +1,25 @@
|
|||
package techreborn.init;
|
||||
|
||||
import net.minecraft.client.audio.Sound;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.util.SoundEvent;
|
||||
|
||||
/**
|
||||
* Created by Mark on 20/03/2016.
|
||||
*/
|
||||
public class ModSounds {
|
||||
public class ModSounds
|
||||
{
|
||||
|
||||
public static SoundEvent shock;
|
||||
public static SoundEvent shock;
|
||||
|
||||
public static void init() {
|
||||
shock = getSound("cable_shock");
|
||||
}
|
||||
|
||||
private static SoundEvent getSound(String str){
|
||||
SoundEvent soundEvent = SoundEvent.soundEventRegistry.getObject(new ResourceLocation("techreborn" + str));
|
||||
return soundEvent;
|
||||
}
|
||||
public static void init()
|
||||
{
|
||||
shock = getSound("cable_shock");
|
||||
}
|
||||
|
||||
private static SoundEvent getSound(String str)
|
||||
{
|
||||
SoundEvent soundEvent = SoundEvent.soundEventRegistry.getObject(new ResourceLocation("techreborn" + str));
|
||||
return soundEvent;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -1,5 +1,12 @@
|
|||
package techreborn.init;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -11,92 +18,94 @@ import techreborn.items.ItemParts;
|
|||
import techreborn.items.ItemPlates;
|
||||
import techreborn.parts.ItemStandaloneCables;
|
||||
|
||||
import java.io.BufferedWriter;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
public class RecipeCompact implements IRecipeCompact
|
||||
{
|
||||
|
||||
public class RecipeCompact implements IRecipeCompact {
|
||||
HashMap<String, ItemStack> recipes = new HashMap<>();
|
||||
|
||||
HashMap<String, ItemStack> recipes = new HashMap<>();
|
||||
ArrayList<String> missingItems = new ArrayList<>();
|
||||
|
||||
ArrayList<String> missingItems = new ArrayList<>();
|
||||
boolean inited = false;
|
||||
|
||||
boolean inited = false;
|
||||
public void init()
|
||||
{
|
||||
recipes.put("industrialDiamond", new ItemStack(Items.diamond));
|
||||
recipes.put("industrialTnt", new ItemStack(Blocks.tnt));
|
||||
recipes.put("copperIngot", ItemIngots.getIngotByName("copper"));
|
||||
recipes.put("tinIngot", ItemIngots.getIngotByName("tin"));
|
||||
recipes.put("bronzeIngot", ItemIngots.getIngotByName("bronze"));
|
||||
recipes.put("leadIngot", ItemIngots.getIngotByName("lead"));
|
||||
recipes.put("silverIngot", ItemIngots.getIngotByName("silver"));
|
||||
recipes.put("iridiumOre", ItemIngots.getIngotByName("Iridium"));
|
||||
recipes.put("plateiron", ItemPlates.getPlateByName("iron"));
|
||||
recipes.put("iridiumPlate", ItemPlates.getPlateByName("iridium"));
|
||||
recipes.put("cell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("airCell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("electronicCircuit", ItemParts.getPartByName("electronicCircuit"));
|
||||
recipes.put("advancedCircuit", ItemParts.getPartByName("advancedCircuit"));
|
||||
recipes.put("rubberWood", new ItemStack(ModBlocks.rubberLog));
|
||||
recipes.put("resin", ItemParts.getPartByName("rubberSap"));
|
||||
recipes.put("carbonPlate", ItemPlates.getPlateByName("carbon"));
|
||||
recipes.put("reBattery", new ItemStack(ModItems.reBattery));
|
||||
recipes.put("machine", BlockMachineFrame.getFrameByName("machine", 1));
|
||||
recipes.put("advancedMachine", BlockMachineFrame.getFrameByName("advancedMachine", 1));
|
||||
recipes.put("extractor", new ItemStack(ModBlocks.Extractor));
|
||||
recipes.put("generator", new ItemStack(ModBlocks.Generator));
|
||||
recipes.put("macerator", new ItemStack(ModBlocks.Grinder));
|
||||
recipes.put("diamondDrill", new ItemStack(ModItems.diamondDrill));
|
||||
recipes.put("miningDrill", new ItemStack(ModItems.ironDrill));
|
||||
recipes.put("solarPanel", new ItemStack(ModBlocks.solarPanel));
|
||||
recipes.put("waterCell", ItemCells.getCellByName("water"));
|
||||
recipes.put("lavaCell", ItemCells.getCellByName("lava"));
|
||||
recipes.put("pump", ItemParts.getPartByName("pump"));
|
||||
recipes.put("teleporter", ItemParts.getPartByName("teleporter"));
|
||||
recipes.put("advancedAlloy", ItemParts.getPartByName("advancedAlloy"));
|
||||
recipes.put("lvTransformer", new ItemStack(ModBlocks.lvt));
|
||||
recipes.put("mvTransformer", new ItemStack(ModBlocks.mvt));
|
||||
recipes.put("hvTransformer", new ItemStack(ModBlocks.hvt));
|
||||
recipes.put("windMill", new ItemStack(ModBlocks.windMill));
|
||||
recipes.put("energyCrystal", new ItemStack(ModItems.energyCrystal));
|
||||
recipes.put("lapotronCrystal", new ItemStack(ModItems.lapotronCrystal));
|
||||
recipes.put("reinforcedGlass", new ItemStack(ModBlocks.reinforcedglass));
|
||||
recipes.put("compressor", new ItemStack(ModBlocks.Compressor));
|
||||
recipes.put("insulatedGoldCableItem", ItemStandaloneCables.getCableByName("insulatedgold"));
|
||||
inited = false;
|
||||
}
|
||||
|
||||
public void init(){
|
||||
recipes.put("industrialDiamond", new ItemStack(Items.diamond));
|
||||
recipes.put("industrialTnt", new ItemStack(Blocks.tnt));
|
||||
recipes.put("copperIngot", ItemIngots.getIngotByName("copper"));
|
||||
recipes.put("tinIngot", ItemIngots.getIngotByName("tin"));
|
||||
recipes.put("bronzeIngot", ItemIngots.getIngotByName("bronze"));
|
||||
recipes.put("leadIngot", ItemIngots.getIngotByName("lead"));
|
||||
recipes.put("silverIngot", ItemIngots.getIngotByName("silver"));
|
||||
recipes.put("iridiumOre", ItemIngots.getIngotByName("Iridium"));
|
||||
recipes.put("plateiron", ItemPlates.getPlateByName("iron"));
|
||||
recipes.put("iridiumPlate", ItemPlates.getPlateByName("iridium"));
|
||||
recipes.put("cell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("airCell", ItemCells.getCellByName("empty"));
|
||||
recipes.put("electronicCircuit", ItemParts.getPartByName("electronicCircuit"));
|
||||
recipes.put("advancedCircuit", ItemParts.getPartByName("advancedCircuit"));
|
||||
recipes.put("rubberWood", new ItemStack(ModBlocks.rubberLog));
|
||||
recipes.put("resin", ItemParts.getPartByName("rubberSap"));
|
||||
recipes.put("carbonPlate", ItemPlates.getPlateByName("carbon"));
|
||||
recipes.put("reBattery", new ItemStack(ModItems.reBattery));
|
||||
recipes.put("machine", BlockMachineFrame.getFrameByName("machine", 1));
|
||||
recipes.put("advancedMachine", BlockMachineFrame.getFrameByName("advancedMachine", 1));
|
||||
recipes.put("extractor", new ItemStack(ModBlocks.Extractor));
|
||||
recipes.put("generator", new ItemStack(ModBlocks.Generator));
|
||||
recipes.put("macerator", new ItemStack(ModBlocks.Grinder));
|
||||
recipes.put("diamondDrill", new ItemStack(ModItems.diamondDrill));
|
||||
recipes.put("miningDrill", new ItemStack(ModItems.ironDrill));
|
||||
recipes.put("solarPanel", new ItemStack(ModBlocks.solarPanel));
|
||||
recipes.put("waterCell", ItemCells.getCellByName("water"));
|
||||
recipes.put("lavaCell", ItemCells.getCellByName("lava"));
|
||||
recipes.put("pump", ItemParts.getPartByName("pump"));
|
||||
recipes.put("teleporter", ItemParts.getPartByName("teleporter"));
|
||||
recipes.put("advancedAlloy", ItemParts.getPartByName("advancedAlloy"));
|
||||
recipes.put("lvTransformer", new ItemStack(ModBlocks.lvt));
|
||||
recipes.put("mvTransformer", new ItemStack(ModBlocks.mvt));
|
||||
recipes.put("hvTransformer", new ItemStack(ModBlocks.hvt));
|
||||
recipes.put("windMill", new ItemStack(ModBlocks.windMill));
|
||||
recipes.put("energyCrystal", new ItemStack(ModItems.energyCrystal));
|
||||
recipes.put("lapotronCrystal", new ItemStack(ModItems.lapotronCrystal));
|
||||
recipes.put("reinforcedGlass", new ItemStack(ModBlocks.reinforcedglass));
|
||||
recipes.put("compressor", new ItemStack(ModBlocks.Compressor));
|
||||
recipes.put("insulatedGoldCableItem", ItemStandaloneCables.getCableByName("insulatedgold"));
|
||||
inited = false;
|
||||
}
|
||||
@Override
|
||||
public ItemStack getItem(String name)
|
||||
{
|
||||
if (!inited)
|
||||
{
|
||||
init();
|
||||
}
|
||||
if (!recipes.containsKey(name))
|
||||
{
|
||||
if (!missingItems.contains(name))
|
||||
{
|
||||
missingItems.add(name);
|
||||
}
|
||||
return new ItemStack(ModItems.missingRecipe);
|
||||
} else
|
||||
{
|
||||
return recipes.get(name);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public ItemStack getItem(String name) {
|
||||
if(!inited){
|
||||
init();
|
||||
}
|
||||
if(!recipes.containsKey(name)){
|
||||
if(!missingItems.contains(name)){
|
||||
missingItems.add(name);
|
||||
}
|
||||
return new ItemStack(ModItems.missingRecipe);
|
||||
} else {
|
||||
return recipes.get(name);
|
||||
}
|
||||
}
|
||||
|
||||
public void saveMissingItems(File mcDir) throws IOException {
|
||||
File missingItemsFile = new File(mcDir, "missingItems.txt");
|
||||
if(missingItemsFile.exists()){
|
||||
missingItemsFile.delete();
|
||||
}
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter(missingItemsFile));
|
||||
for(String str : missingItems){
|
||||
writer.write(str);
|
||||
writer.newLine();
|
||||
}
|
||||
writer.close();
|
||||
}
|
||||
public void saveMissingItems(File mcDir) throws IOException
|
||||
{
|
||||
File missingItemsFile = new File(mcDir, "missingItems.txt");
|
||||
if (missingItemsFile.exists())
|
||||
{
|
||||
missingItemsFile.delete();
|
||||
}
|
||||
BufferedWriter writer = new BufferedWriter(new FileWriter(missingItemsFile));
|
||||
for (String str : missingItems)
|
||||
{
|
||||
writer.write(str);
|
||||
writer.newLine();
|
||||
}
|
||||
writer.close();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue