public TileEntity createNewTileEntity(World world, int metadata) {
switch(metadata) {
case METADATA_REACTOR:
return new TileEntityReactorGlass();
case METADATA_TURBINE:
return new TileEntityTurbinePartGlass();
default:
throw new IllegalArgumentException("Unrecognized metadata");
}
}