2015-09-23 18:37:25 +02:00
|
|
|
package techreborn.api;
|
2015-08-10 20:41:28 +02:00
|
|
|
|
|
|
|
|
|
|
|
import net.minecraft.block.Block;
|
|
|
|
|
|
|
|
public class TechRebornBlocks {
|
|
|
|
|
2015-11-08 13:15:45 +01:00
|
|
|
public static Block getBlock(String name) {
|
2015-08-10 20:41:28 +02:00
|
|
|
try {
|
|
|
|
Object e = Class.forName("techreborn.init.ModBlocks").getField(name).get(null);
|
2015-11-08 13:15:45 +01:00
|
|
|
return e instanceof Block ? (Block) e : null;
|
2015-08-10 20:41:28 +02:00
|
|
|
} catch (NoSuchFieldException e1) {
|
|
|
|
e1.printStackTrace();
|
|
|
|
return null;
|
|
|
|
} catch (IllegalAccessException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
return null;
|
|
|
|
} catch (ClassNotFoundException e) {
|
|
|
|
e.printStackTrace();
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
Full list of blocks.
|
|
|
|
|
|
|
|
thermalGenerator
|
|
|
|
quantumTank
|
|
|
|
quantumChest
|
|
|
|
digitalChest
|
|
|
|
centrifuge
|
|
|
|
RollingMachine
|
|
|
|
MachineCasing
|
|
|
|
BlastFurnace
|
|
|
|
AlloySmelter
|
|
|
|
Grinder
|
|
|
|
ImplosionCompressor
|
|
|
|
MatterFabricator
|
|
|
|
ChunkLoader
|
|
|
|
HighAdvancedMachineBlock
|
|
|
|
Dragoneggenergysiphoner
|
|
|
|
Magicenergeyconverter
|
|
|
|
AssemblyMachine
|
|
|
|
DieselGenerator
|
|
|
|
IndustrialElectrolyzer
|
|
|
|
MagicalAbsorber
|
|
|
|
Semifluidgenerator
|
|
|
|
Gasturbine
|
|
|
|
AlloyFurnace
|
|
|
|
ChemicalReactor
|
|
|
|
lathe
|
|
|
|
platecuttingmachine
|
|
|
|
Idsu
|
|
|
|
Aesu
|
|
|
|
Lesu
|
|
|
|
Supercondensator
|
|
|
|
Woodenshelf
|
|
|
|
Metalshelf
|
|
|
|
LesuStorage
|
|
|
|
Distillationtower
|
|
|
|
ElectricCraftingTable
|
|
|
|
VacuumFreezer
|
|
|
|
PlasmaGenerator
|
|
|
|
FusionControlComputer
|
|
|
|
ComputerCube
|
|
|
|
FusionCoil
|
|
|
|
LightningRod
|
|
|
|
heatGenerator
|
|
|
|
industrialSawmill
|
|
|
|
chargeBench
|
|
|
|
farm
|
|
|
|
|
|
|
|
ore
|
|
|
|
storage
|
|
|
|
storage2
|
|
|
|
machineframe
|
|
|
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
}
|